playMaker

Author Topic: Keep an object moving forward while jumping  (Read 1852 times)

ShazBang

  • Playmaker Newbie
  • *
  • Posts: 33
Keep an object moving forward while jumping
« on: April 29, 2016, 04:41:49 AM »
Okay so I created a pretty basic game where a cube moves along the X axis, the goal is to jump over gaps.

I'm having trouble with making the cube jump and keep moving forward.

The action I'm using is itween MoveBy, and I make the x axis 100 and the Y axis 10 so it jumps up 10 and keeps moving to 100 which is the end of the level.

The problem is when I try to make the jump go faster so it doesnt take forever to land, but doing this makes the cube move all the way to 100 on the X axis very fast too because they both share the same time.

How can I separate them?

Thanks

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Keep an object moving forward while jumping
« Reply #1 on: April 29, 2016, 11:00:51 AM »
Hi,
Maybe This tutorial may help you :


ransomink

  • Playmaker Newbie
  • *
  • Posts: 44
Re: Keep an object moving forward while jumping
« Reply #2 on: May 01, 2016, 02:26:02 PM »
Just create 2 separate FSMs: one for movement and another for jumping.

Movement FSM
Use an action that moves your object and set it to every frame (to make it continuous).

Jumping FSM
Have the object jump however you want.