playMaker

Author Topic: Random Movement [Solved]  (Read 2042 times)

jgalvezpa

  • Junior Playmaker
  • **
  • Posts: 58
    • View Profile
Random Movement [Solved]
« on: October 29, 2013, 09:09:30 PM »
Hello i want to add random movement to my 2D objects with rigidbody around the screen, moving randomly and colliding each other, how can i achieve that? i was looking into itween too many actions don't know the correct one to use.
« Last Edit: October 30, 2013, 12:34:47 AM by jgalvezpa »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Random Movement
« Reply #1 on: October 29, 2013, 10:38:33 PM »
Hi,

 It depends the type of game you have, you could use pathfinding and change the destination when arriving, that's very powerful cause your character can wander around everywhere in your level. If you are looking for something less powerful, you'll need to precise the game, is it a 2d game, 3d game, what's your level is made of and what kind of distance you expect the character to walk, etc.

bye,

 Jean

jgalvezpa

  • Junior Playmaker
  • **
  • Posts: 58
    • View Profile
Re: Random Movement
« Reply #2 on: October 29, 2013, 10:42:36 PM »
Hi it is 2D game with balloons not character, i want my balloons to move random in the screen

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 14684
  • Official Playmaker Support
    • View Profile
Re: Random Movement
« Reply #3 on: October 29, 2013, 11:17:37 PM »
Hi,

 Ok, I see:

 I would use the custom action "perlinNoise" http://hutonggames.com/playmakerforum/index.php?topic=46.msg199#msg199

with this you would get a "noisy" float that you can inject into a "addForce" action applied to your ballon.

 Start experimenting with this and get back to me if you have issues getting it right.

Bye,

 Jean