How To Make Actors Fly in the screen from nowhere like fruit ninja

Anthony1

  • Posts: 68
Just wondering How To Make Actors Fly in the screen from nowhere like fruit ninja. Having a game that objects will fly in the screen and fall out.

kuroi

  • Posts: 110
You can try to use a Spawn Actors in Region behaviour (to be found in Stencyl Forge).
And then add appropriate behaviours to newly spawned actors.

Rexasul

  • Posts: 147
You could create a multi-purpose behaviour that launches the actor towards a random direction within a given limit. By multi-purpose, I mean that this could be attached to each actor, or each piece of "fruit". You could use a scene behaviour to create these actor types at random, and potentially at random intervals, using a "create actor type" block.

From memory, you could try something like this for the actor behaviour:
"Push self sharply towards [random number between '210' and '330'] degrees at 20 force."
my website |>>| shadowlabs.net

Anthony1

  • Posts: 68
You could create a multi-purpose behaviour that launches the actor towards a random direction within a given limit. By multi-purpose, I mean that this could be attached to each actor, or each piece of "fruit". You could use a scene behaviour to create these actor types at random, and potentially at random intervals, using a "create actor type" block.

From memory, you could try something like this for the actor behaviour:
"Push self sharply towards [random number between '210' and '330'] degrees at 20 force."
Will this work !

h1rnz1lla

  • *
  • Posts: 649
yes it will. give the scene the ability to spawn fruits. give the fruits the ability to move.

Anthony1

  • Posts: 68
yes it will. give the scene the ability to spawn fruits. give the fruits the ability to move.
i did exactly what you said and it didnt work for the event i added when created is this right?, and for another behavior i added simulate actor is this correct ! lead me in the right direction.