Trouble with custom movement

  • Been playing around with the custom movement on C2 and I'm stuck.

    I tried this....

    Sprite on custom movement.

    Sys - On start of layout - accelerate sprite towards... or even just accelerate...

    Nothing happens despite the stepping mode. Is this a bug or not implemented.

    Also if I set a horizontal speed (sprite does move) then try push up out of solid - again no joy.

    Any ideas?

  • If you want your sprite to move, you should put the accelerate action in an "every tick" condition, not just "on start of layout".

    "On start" only happens once, at the beginning of startup.

    For pushing object, check the "how do I FAQ" there are examples of it there. The example use the platform behavior, but the logic is the same for the custom movement behavior.

  • Aslo tried push up out of solid after collision... nothing.

    But oddly if I move the sprite forward manually in 1px steps (not set speed on custom movement) the push up out of solid works.. hmmmm

  • Ah yes - every tick accelerate works - thanks. I'll have a bit more of a play

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • check the "how do I FAQ" there are examples of it there. The example use the platform behavior, but the logic is the same for the custom movement behavior.

    wow, just found this FAQ... VERY useful.. thanks!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)