The Dink Network

Reply to Re: Resizing sprite (among 1000 things more)

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
June 10th 2016, 05:12 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
Or other sprite changed his value since I moved them around
Yes, that is possible. Never think that you know the number of a sprite; always get it from sp() or &current_sprite. The editor_num you can know, the active sprite number does not follow defined rules (which means that if you predict it, even if you are right this time, it may break at any time, so don't do that).

I don't know if WDE+ changes its editor_nums when you do things to the sprites; I wouldn't be surprised if it did, which would mean using those is also fragile (because it can break when you edit the map). It might be good to check that. Or does someone know about this?