playMaker

Author Topic: Change force of game object  (Read 1706 times)

Xsoul

  • Playmaker Newbie
  • *
  • Posts: 2
Change force of game object
« on: August 31, 2014, 06:05:12 AM »
Hello guys, I'm working on a new game this time using the great Playmaker and I'm kind of new to it ;)

I'm looking for my game object (player) to go towards planets when I click on planet, then change direction when I click on another one.

First thing works perfectly : I store vector 3 of planet I click on and I
Add force to my player to the vector 3 I just stored, the player then goes toward the planet.

When I click on another planet I store the new vector 3 and I want the player to go toward it but it goes between both (because it adds force!)

So How i can do it ? :p

The add force fails, I could reset the force (didn't find) but I really want a smooth movement, it's core of the gameplay!!

Would really appreciate help, thanks!!=)

Phuzz

  • Full Member
  • ***
  • Posts: 101
    • Bzilla Games
Re: Change force of game object
« Reply #1 on: September 03, 2014, 03:17:33 AM »
Hello,

The Idea is to cancel the previous force upon applying the other one.

P.S: Why dont you use "Move Towards" Action? or one of the iTween Actions.

Otherwise

Check this post it might help  :)

http://hutonggames.com/playmakerforum/index.php?topic=8257.0
Bzilla Games "Education with a Tickle!"
Qbucket Games "Voxel Games"