#Random position animation

1 messages · Page 1 of 1 (latest)

vocal fable
#

Hello everyone! Complete coding noob here, I was wondering if it is possible to animate an aura-image so it shows in a random position of the screen or within it's container box or a random position within a defined screen portion, every time a trigger is true of course. Any help appreciated, thanks!!

fallen gull
#

as far as i know, its not advisable to change the position of the aura while in combat, just start hitting a bunch of protected issues, but you can kind of mimic it with multiple copies that show up mutually exclusive of each other. its not ideal, but its more of a limitation wow api puts on specific things

#

this doens't help your random position thing, so i dont think its possible

#

at least not in an easy way thats worth even doing

vocal fable
#

I see, I've been trying to replicate an old addon called Comix... just for the sake of reducing the amount of addons and rely more on my own weak auras... the addon did something similar: whenever you landed a crit it would pop a custom image randomly on the screen kinda like that old Batman tv show POW BAM KA-POW etc etc... it is a rather fun addon since you can even have different images per magic school crits...

#

So for now I achieved almost everything else the addon did crit-image wise... they just in the same spot

fallen gull
#

weak auras was not really meant to do something like this

vocal fable
#

I see, however, thank you very much for your response and time! Appreciated

#

Maybe a middle ground solution would be to have 3-4 images files that have the relevant design in different areas of the image canvas so the weak aura that I have can randomly cycle through them and it would "seem" the images are in 3-4 random spots when in reality the images positions never change... thank you!

midnight coral
#

Random is fine.

fallen gull
#

random screen position?

midnight coral
#

Sure.
Try something like this in [Actions - On Show]

local getRandom = function(max) return (math.random() * max) - max/2 end
aura_env.region:SetOffsetRelative(getRandom(200), getRandom(200))
#

Actually it's pretty funky 😄

#

🤣

fallen gull
#

welp guess im wrong lol

#

old info for me i guess

midnight coral
#

Slide Animations and Conditions are moving things around.
The only reason moving it would be bad is if you forced your Aura to be secure which is the bit we would warn people away from doing.

#

1960s Batman UI incoming

vocal fable
#

OMG!! THANK YOU SO MUCH!!! AWESOME!! 🤘 😅 🍺