Scrolling Game Development Kit Forum
SGDK Version 2 => Help, Errors, FAQ => Topic started by: v6v on 2012-04-14, 07:36:22 PM
-
Quick question, how would I access the current sprite's (or a specified sprite's) priority as an integer?
I would love to use this within SpriteBase, or PlanBase.
-
Priorities are not actually part of the generated game. They are used only to calculate nInjectStartIndex and nAppendStartIndex for the layer on which the sprite resides. If you want an integer property of the sprite that can be accessed at run-time, you'll have to add it as a parameter to the sprite (or alter SGDK2 code).