Something wrong with speed of movement of actor

BasGoodboyBasGoodboy Member, PRO Posts: 310
edited June 2014 in Working with GS (Mac)

Hey all,

So Im almost at the finishing of my first app, worked month on this and want to put the dots on the i's (dutch saying, making all perfect).

I have raft/island actors which come and go, with a certain speed, from top to bottom, depending on the level.

I made these rules on those actors:

If level > 3:
MOVE
Direction: 270 | Relative to: actor | Move type: additive
Speed: 50

If level > 4:
MOVE
Direction: 270 | Relative to: actor | Move type: additive
Speed: 52

if level > 5:
If level > 4:
MOVE
Direction: 270 | Relative to: actor | Move type: additive
Speed: 54

and so on. As you can see the speed increases. It all works too, until the moment I wanted to perfect out the speed balance with the gameplay. This seems not to be the right way..

If level > 6, i want the player to have a little pauze in the raft/island jumping, and i set the rule:

If level > 6:
MOVE
Direction: 270 | Relative to: actor | Move type: additive
Speed: 50

As you can see, the speed is set back to 50, just like levels below 3.. buttttttt the speed isn't setting back, it seems that the speed rules are increasing eachother, and are not solo per rule, as I expected..

How to fix this? It is really essential for my game to make this work, needless to say..

Thanks in advance, best regards.

Goodboi Gamestudios | Monster Jumper now on the App Store

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Try using Stacked move behaviors rather than Additive ones. From the Cookbook:

    Move: “Use to move in a particular direction relative to the actor or the scene at a specified velocity. Additive movement allows multiple move behaviors to stack, or act on an actor simultaneously; Stacked movement causes only the most recent active movement behavior to control the actor.”

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • BasGoodboyBasGoodboy Member, PRO Posts: 310

    @tatiang perfect man! Figured it out now thanks to you. Thanks a lot.

    Goodboi Gamestudios | Monster Jumper now on the App Store

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome!

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.