Constraining to X and Y
Pocket_Tech
Member Posts: 50
So I've been working on this game for some time now and I'm going through tweaking the graphics.
I have four different coloured lanterns that fly upwards, they all have an animation behaviour to make them look 3D like they are spinning. I want to put a slight translucent glow behind each of them so they look more appealing.
Each animation is about 30 fames by the 4 actors 120 images. I want to save some time and file size so i figure i add an "glow" actor for each of them and constrain the X and Y from the glow to the lantern of its colour. Each time a new lantern spawns i spawn a new glow actor. when they reach a certain Y value they destroy.
The issue is if a lantern is half way up the screen not yet at the peak Y value and a new lantern spawns at the bottom the glow actor will jump from the top one down to the new one and so on.
Any ideas guys?
I have four different coloured lanterns that fly upwards, they all have an animation behaviour to make them look 3D like they are spinning. I want to put a slight translucent glow behind each of them so they look more appealing.
Each animation is about 30 fames by the 4 actors 120 images. I want to save some time and file size so i figure i add an "glow" actor for each of them and constrain the X and Y from the glow to the lantern of its colour. Each time a new lantern spawns i spawn a new glow actor. when they reach a certain Y value they destroy.
The issue is if a lantern is half way up the screen not yet at the peak Y value and a new lantern spawns at the bottom the glow actor will jump from the top one down to the new one and so on.
Any ideas guys?
Comments
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
http://forums.gamesalad.com/search?Search=unique+spawn