YesNoOk
avatar

Velset which travels diagonally (Read 295 times)

Started by BoyBoyz, September 27, 2018, 04:56:52 pm
Share this topic:
Velset which travels diagonally
#1  September 27, 2018, 04:56:52 pm
  • ***
Hi,

Anyone know how to configure a velset such that the character travels diagonally only?  The below example doesn't work, as the character will travel diagonal for a while then suddenly just fly upwards without maintaining the diagonal trajectory.  Help!

[State 0, VelSet]
type = VelSet
trigger1 = animelem = 5
x = 7
y = -3.5

Is it by adding a velmul?
Last Edit: September 28, 2018, 09:17:30 am by BoyBoyz
Re: Velset which travels diagonally
#2  September 27, 2018, 05:40:36 pm
  • ***
  • 風よ伝えて
    • Brazil
    • deathscythe.co.vu
The above code should work. Isn't there any other velset, veladd or velmul in the state? Also remember to use physics = N.
Last Edit: September 27, 2018, 05:47:33 pm by DeathScythe
Re: Velset which travels diagonally
#3  September 28, 2018, 09:17:17 am
  • ***
Oh no wonder, i think it is the physics issue! Thanks!