I'm making a game with several Portals. Each Portal will be directing the player to a specific location on the map.
My question is, can I use the same Sprite and use it on several levels with different actions? I don't want to navigate through hundreds of Sprite object types.
Sorry if it is hard to understand.
Develop games in your browser. Powerful, performant & highly capable.
Yes a single sprite with instance variables will work. You set each instance's variables uniquely.
Thank you. I always seem to forget how flexible using variables can be!