Import Sprites in main()
Posted: Fri Dec 27, 2019 12:32 pm
Hi, my first question. I’m still a learner programmer so hope I can get my questions across. Using SGDK examples I’ve got the starting of my game but I’m importing quite large sprites and must be breaking sprite limits as I cannot define them all in main() and have them appear.
I’m defining in rescomp and importing using SPR_addSprite to add them. At the start I’m hiding them off-screen and only moving them onscreen when needed using SPR_setPosition.
I cannot add all of them in main() as then some are not appearing when needed. Is there a way to only add sprites when needed but out of the main loop?
Cheers
I’m defining in rescomp and importing using SPR_addSprite to add them. At the start I’m hiding them off-screen and only moving them onscreen when needed using SPR_setPosition.
I cannot add all of them in main() as then some are not appearing when needed. Is there a way to only add sprites when needed but out of the main loop?
Cheers
