YesNoOk
avatar

[Code] Need help with Helper-Type Projectile with acceleration attributes  (Read 1482 times)

Started by Redash, May 13, 2018, 01:44:42 pm
Share this topic:
[Code] Need help with Helper-Type Projectile with acceleration attributes
#1  May 13, 2018, 01:44:42 pm
  • avatar
  • **
    • Singapore
Hi,

Projectile-Type projectiles has accel for adjustment.
Where can I find and adjust parameters that act like "accel" on Helper-Type projectile?

Cuz I want to do something like below so that the projectile will "arc/curve":
accel   = Cond(Vel X >= 0, -0.05, 0), 0.3

my Goal: to create a Bouncing energy ball that explode on 2nd bounce or when hit by enemy projectile.

Pls advise.

Last Edit: May 21, 2018, 07:24:17 am by Redash
Re: [Code] Need help with Helper-Type Projectile with acceleration attributes
#2  May 13, 2018, 05:49:08 pm
  • ****
  • Cute Bounty Hunter
VelAdd.

Code:
[State 0, blah]
type = VelAdd
trigger1 = blah
x = Cond(Vel X >= 0, -0.05, 0)
y = 0.3
Re: [Code] Need help with Helper-Type Projectile with acceleration attributes
#3  May 21, 2018, 07:24:10 am
  • avatar
  • **
    • Singapore
Thanks much Baby Bonnie Hood :)

It works like a charm with the right trigger