Fangames > Programming Questions

Weird Sprite Glitch in Lemon Engine

(1/1)

RandomFangamer:
Today I was working on my fangame when I found a really weird sprite glitch. One of my traps uses a fish object (Cheep-Cheep) that faces up, and when it hits a certain point it is supposed to look down and move off screen. To make him do this "animation" I am using the sprite_index command, but when I load the game the fish is replaced with the first sprite for the kid. Is there any way to stop this or another way to change sprites?

Images:
(click to show/hide)


Code:
(click to show/hide)

Anon70000:
RandomFangamer
use sprite_index = name (like sprite_index = sprSpike)
Kid shows up when instance can't load sprite properly

RandomFangamer:
Yay!
I needed this fix for a lot of other objects too
Thanks for the help Anon70000  :paraKid:

Navigation

[0] Message Index

Go to full version