Hello! Beginner here!
I'm trying to build a game where the player is chased by bats.
When the player is within his safe area, the bats just roam around (Move at random). When the player leaves a set area, a switch is toggled and the bats chase him (Move toward player) and when touching the player a text shows up (Event touch). When returning to his safe area the switch is turned off and the bats return to moving at random. I have the Move toward player set as a separate Event, and the Event touch is enabled on each bat's event page.
This all works fine, except for when I want to randomise the placement of the bats by spawning them with the VisuStella Events & Movement Core plugin. They spawn fine, and touching them does trigger the text, but the spawned bats don't follow the moveset. The spawned one just stands still. At the moment, I'm having a "dummy" bat on the map which is then also spawned in. The dummy follows the moveset, the spawned copy doesn't.
I don't really understand if the separate movements Event understands that the spawned bat is to be included in the movement set (Bat1). Edit: I've found that unless I leave the "template name" blank/Untitled, the event doesn't spawn...
Is there a way to implement all the above features?
Any help would be GREATLY appreciated!!
I'm trying to build a game where the player is chased by bats.
When the player is within his safe area, the bats just roam around (Move at random). When the player leaves a set area, a switch is toggled and the bats chase him (Move toward player) and when touching the player a text shows up (Event touch). When returning to his safe area the switch is turned off and the bats return to moving at random. I have the Move toward player set as a separate Event, and the Event touch is enabled on each bat's event page.
This all works fine, except for when I want to randomise the placement of the bats by spawning them with the VisuStella Events & Movement Core plugin. They spawn fine, and touching them does trigger the text, but the spawned bats don't follow the moveset. The spawned one just stands still. At the moment, I'm having a "dummy" bat on the map which is then also spawned in. The dummy follows the moveset, the spawned copy doesn't.
I don't really understand if the separate movements Event understands that the spawned bat is to be included in the movement set (Bat1). Edit: I've found that unless I leave the "template name" blank/Untitled, the event doesn't spawn...
Is there a way to implement all the above features?
Any help would be GREATLY appreciated!!