Game Development Community

Newb graphics question

by Acy Forsythe · in Torque Game Builder · 02/26/2008 (6:41 am) · 1 replies

What is the process of overlaying sprites? For instance, in RPG's where the armor/weapons show up on the character as you equip them.

#1
03/13/2008 (12:47 pm)
Set your sprites to different layers in order to have them stack.

You can do this at design time, in the editor, by selecting your image and setting the layer via the GUI. Alternatively, if you want or need to do it via code, you'd use yourIMG.setLayer(x) where x is the layer you want the sprite to exist.