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 / [SOLVED] Sprite arrangement

Author
Message
MateiSoft
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 2nd Jul 2018 20:44
Hello Community,

Is there a way to arrange sprites, let's say, I want the first sprite to be on top of another sprite?
Is there any command that can do that?

Thank you!
www.alexmatei.com

The author of this post has marked a post as an answer.

Go to answer

puzzler2018
User Banned
Posted: 2nd Jul 2018 20:50
Long time since I worked with 2D but i think you need

SetSpriteDepth

and set the order of sprites

I maybe totally wrong though so dont quote me on it.


xCept
21
Years of Service
User Offline
Joined: 15th Dec 2002
Location:
Posted: 2nd Jul 2018 20:50
This post has been marked by the post author as the answer.
SetSpriteDepth(sprId, index)

Where index is the depth from camera (0 being topmost).
MateiSoft
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 2nd Jul 2018 21:19
Isn't this command set for overlapping 3D Objects?
www.alexmatei.com
MateiSoft
11
Years of Service
User Offline
Joined: 22nd Oct 2012
Location:
Posted: 2nd Jul 2018 21:40
You where right!

Answer found!

Thank you!
www.alexmatei.com

Login to post a reply

Server time is: 2024-09-30 19:25:34
Your offset time is: 2024-09-30 19:25:34