Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Draw sprite priority

Author
Message
Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 29th Sep 2011 21:50
I have a loop where I move a sprite acorss the screen.
First I draw the playfield (10x10 sprites) with a gosub drawplayfield
Then I draw my moving sprite by gosyb moveSprite.

The first time my move sprite is on top of my playfield but after that it is behind.

How do I set the priority?

In my loop I draw the playfield before the moving sprite.

iOS Apps from Trisect Development.
Click here.
Hubdule
21
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 29th Sep 2011 21:56
Just use SetSpriteDepth()

Trisect Development
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: Denmark
Posted: 29th Sep 2011 22:41
Super thanks!
Still learning

iOS Apps from Trisect Development.
Click here.

Login to post a reply

Server time is: 2024-03-28 12:55:15
Your offset time is: 2024-03-28 12:55:15