YesNoOk
avatar

explod random between 3 anims (Read 2681 times)

Started by Rōjenomu, November 19, 2017, 04:52:28 am
Share this topic:
explod random between 3 anims
New #1  November 19, 2017, 04:52:28 am
  • ****
  • King of Sona
i have 3 animations (8800,8801,8802) but i want it to randomly choose which one shows up

the explod is like this

Code:
[State Explod]
type = Explod
trigger1 = time = 0
anim =                            ;someting something with random syntax... ?
postype = p1
pos = ceil(40*const(size.xscale)),ceil(-100*const(size.yscale))
bindtime = -1
velocity = 0, 0
accel = 0, 0
ownpal = 1
removetime = -1
sprpriority = 5
facing = -1
removeongethit = 1
scale = const(size.xscale),const(size.yscale)

how should i write the anim to do this?
Spoiler, click to toggle visibilty

Quote
Lord Canti Says:
i was playing FFVII and I accidently named Red XIII Cyanide D:
Last Edit: November 19, 2017, 12:20:35 pm by Rōjenomu
Re: explod random between 3 anims
#2  November 19, 2017, 05:50:23 am
  • ****
  • Robotics Engineer
    • USA
    • altoiddealer@gmail.com
anim = 8800 + Random%3

Re: explod random between 3 anims
#3  November 19, 2017, 10:33:21 am
  • ****
  • King of Sona
thank you, much appreciated!! always seem to forget the syntax
Spoiler, click to toggle visibilty

Quote
Lord Canti Says:
i was playing FFVII and I accidently named Red XIII Cyanide D: