I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: RandomFangamer on April 11, 2015, 11:45:37 AM

Title: Weird Sprite Glitch in Lemon Engine
Post by: RandomFangamer on April 11, 2015, 11:45:37 AM
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)
Title: Re: Weird Sprite Glitch in Lemon Engine
Post by: Anon70000 on April 11, 2015, 12:04:16 PM
RandomFangamer
use sprite_index = name (like sprite_index = sprSpike)
Kid shows up when instance can't load sprite properly
Title: Re: Weird Sprite Glitch in Lemon Engine
Post by: RandomFangamer on April 11, 2015, 01:08:01 PM
Yay!
I needed this fix for a lot of other objects too
Thanks for the help Anon70000  :paraKid: