[SOLVED] Is it possible to make a sprite gallery using SetScreenVariable?
Posted: Sat Mar 28, 2020 6:09 pm
I'm attempting to make an outfit/sprite gallery inside of my game's regular gallery. In theory, I'm trying to make it so that clicking on arrows next to the sprite causes a different variation of the sprite to pop up in place of the sprite already there like so:
so far I have added and initialized a variable so I know which sprite to show
but when I try to increment/decrement the variable using this as the action on the "next" button-
I just get an error saying the syntax is invalid.
I figure there has to be a way to do this, whether with or without SetScreenVariable() or something else. If anyone knows an easier or correct way to go about this, it would be a great help! I've searched about to see if anyone had posted about making a sprite gallery but I couldn't find anything.
so far I have added and initialized a variable so I know which sprite to show
Code: Select all
default aliceOutfit = 0
Code: Select all
SetScreenVariable("aliceOutfit", += 1)
I figure there has to be a way to do this, whether with or without SetScreenVariable() or something else. If anyone knows an easier or correct way to go about this, it would be a great help! I've searched about to see if anyone had posted about making a sprite gallery but I couldn't find anything.