[Resolved] Another question about the new Sprite API

Hi all once again,

I’m converting old Sprite code to the new Sprite API and I have a question about identifying
which Sprite caused a Sprite Handler interrupt.

I used to use object.sprite.id which I converted over to object.target.id but it appears that object.target.id does not exist.

The only way I have been able so far to determine which SpriteObject caused the interrupt is to check object.target.sequence which is rather cumbersome since it means that I need a unique sequence name for each SpriteObject and that means a number of basically almost identical tables or table entries.

I’m guessing there must be an easier way (I hope?). Could someone enlighten me?
Thanks,
-Dennis
[import]uid: 108253 topic_id: 30974 reply_id: 330974[/import]

Oops. I spoke too soon.

Turns out object.target.id does indeed work. My bad. Just need to set in advance when you create the Sprite.

Thanks for your patience.
-Dennis
[import]uid: 108253 topic_id: 30974 reply_id: 123867[/import]

Oops. I spoke too soon.

Turns out object.target.id does indeed work. My bad. Just need to set in advance when you create the Sprite.

Thanks for your patience.
-Dennis
[import]uid: 108253 topic_id: 30974 reply_id: 123867[/import]