Thread: Gani editing
View Single Post
  #5  
Old 07-24-2011, 09:36 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Um, it should work fine using
PHP Code:
SCRIPT
function onPlayerEnters() {
  
sleep(3);
  
findimg(200).image = "newimage.png";
}
SCRIPTEND 
Very rarely I come across a situation where I cannot access sprite indexes using findimg(200), but you might need to "enable drawing" on the sprite index by adding something like:
ROTATIONEFFECT 200 1

I've attached a test gani that does what you need, and works fine.
Attached Files
File Type: gani testgani.gani (338 Bytes, 192 views)
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote