YesNoOk
avatar

Explod won't accept vel or accel parameters (Read 219 times)

Started by Ultimaetus, June 18, 2014, 10:13:18 am
Share this topic:
Explod won't accept vel or accel parameters
#1  June 18, 2014, 10:13:18 am
  • *
    • USA
    • derric.vinhage@gmail.com
I barely started this statedef and I always work one state controller at a time, so I have not gotten far on it. I don't understand what is happening with it;  The explod will not move no matter what range of vel's or accel I set, I tried messing with the different parameter's then another weird thing I saw was when I changed the bindtime to any value 0 or greater, the explod will disappear as soon as bind time is up or not appear at all if 0. I feel like it is something stupid, but I can't tell.

Code:
[Statedef 200]
type    = S
movetype= I
physics = N
ctrl = 0
sprpriority = 1

[State 200, Explod]
type = Explod
triggerall = NumExplod(1111) = 0
trigger1 = stateno = 200
anim = 310
ID = 1111
pos = 45,-100
postype = p1  ;p2,front,back,left,right
facing = 1
vfacing = 1
bindtime = -1
vel = 0,20
accel = 0,20
removetime = -1
pausemovetime = 0
scale = .20,.20
sprpriority = 2
ontop = 0
shadow = 0,0,0
ownpal = 1
removeongethit = 0
;ignorehitpause = 1

;[State 200, VarSet]
;type = VarSet
;trigger1 = time = 0
;v = 1    ;fv = 10
;value = 1
;ignorehitpause = 1
;persistent = 0

[State 200, 3]
type = ChangeState
trigger1 = animtime = 0
value = 0
ctrl = 1
Re: Explod won't accept vel or accel parameters
#2  June 19, 2014, 12:15:16 am
  • **
  • NvP!
dude set the bindtime to 1 not to -1 cuz -1 is makin it binding to the player the whole time
also that accel is way toooo high.. use something like 0.02 or more but not 20
that velset may be too high too dunno
Re: Explod won't accept vel or accel parameters
#3  June 19, 2014, 12:28:24 am
  • *
    • USA
    • derric.vinhage@gmail.com
The wiki made it sound like you could move the explod while it still being bound to p1, I guess thats not the case. which means I'm probably going to have to animate the whole path in order for it to still be bound to p1?
Re: Explod won't accept vel or accel parameters
#4  June 20, 2014, 08:40:14 pm
  • *****
  • Mega Klinklang confirmed
    • USA
    • ricepigeon.webs.com
That or use the ModifyExplod controller to change the position of the explod while still being bound to the character, which gives you greater control than animating the path in the AIR file.

<<-- Updated 09/14/14

You limit yourself so badly when you try to avoid variables. When you get over your fear of the "complexity" of variables, you will find yourself in a better place: A beautiful world where coding is actually fun.
Re: Explod won't accept vel or accel parameters
New #5  June 24, 2014, 06:18:51 am
  • *
    • USA
    • derric.vinhage@gmail.com
Spoiler, click to toggle visibilty

Bleh, I'll just use cos and sin and tweak it till it looks right, saves me variables, time, and brain cells.
Last Edit: June 24, 2014, 07:06:58 am by Ultimaetus