Hi,
I'm using the below event to scroll through a series of sprite images in sequential order:
Is there a way to modify this so that only images that are visible onscreen will be displayed?
... only images that are visible onscreen will be displayed?
Is this not always true?
I should have phrased the question differently. What I was trying to do was only display certain sprites in the sequence when a character is "unlocked" and have a different image display for characters that have yet to be unlocked.
You could have two animations "locked" and "unlocked" and each frame is one of the characters. Then you just check if the character on the next frame is locked or unlocked and set the animation accordingly.
Like this:
wackytoaster.at/parachute/unlock.c3p
Many thanks, WackyToaster.
Do I need to add any data to the array in order for it to work?
Develop games in your browser. Powerful, performant & highly capable.
Yeah, you push the number of the frame into the array for every unlocked character (like I do on start of layout for demonstration)