Author Topic: Sprite Priorities  (Read 1920 times)

v6v

  • Clever
  • Fanatic
  • ***
  • Posts: 500
  • Has renamed his project to Galaxy!
    • View Profile
    • My Developer Page!
    • Email
Sprite Priorities
« 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.

bluemonkmn

  • SGDK Author
  • Administrator
  • Fanatic
  • *****
  • Posts: 2761
    • ICQ Messenger - 2678251
    • MSN Messenger - BlueMonkMN@gmail.com
    • View Profile
    • http://sgdk2.sf.net/
    • Email
Re: Sprite Priorities
« Reply #1 on: 2012-04-15, 05:52:49 AM »
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).