Author Topic: Weird Sprite Glitch in Lemon Engine  (Read 1289 times)

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
Weird Sprite Glitch in Lemon Engine
« 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)




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid:

Anon70000

  • Cherry Eater
  • Posts: 50
  • OS:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 37.0 Firefox 37.0
    • View Profile
  • Playstyle: Keyboard
Re: Weird Sprite Glitch in Lemon Engine
« Reply #1 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

RandomFangamer

  • Cherry Eater
  • Posts: 71
  • Pico Pico Piiiiiii
  • OS:
  • Windows 8.1/Server 2013 Windows 8.1/Server 2013
  • Browser:
  • Mozilla compatible Mozilla compatible
    • View Profile
  • Playstyle: Keyboard
Re: Weird Sprite Glitch in Lemon Engine
« Reply #2 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:




:ItsBoshyTime: o o o o o :denProgress: o o o o o :paraKid: