Sprite Disappearance At Some Cooridinates

View previous topic View next topic Go down

Sprite Disappearance At Some Cooridinates

Post  Gamer_Mason on Sat Oct 13, 2012 12:35 am



This was something I put together just to see about how this sort of thing would be done, using the preset sprites and bg tiles. Initially, the plan was to shoot projectiles, but the loop for the projectile displacement caused the player to stop movement, so I changed it to a sword and got rid of the displacement to make it appear better aesthetically. So even though it appears clean enough at the moment, I think the way it is right now would cause all other sprites on the screen not to move. I thought about adding a gosub for enemy movement in there when the player sprite is immobilized, but then I also couldn't really imagine how to program an enemies movement. I'll have to think on that more.

I'm pretty sure I can figure out those things though. My real problem here is how the sword or cane sprite does not appear beyond y=3 or x=3. All coordinates at lesser values than those display the sword fine, but then here it just disappears, and it seems to be for no reason. No error plays, the sprite animation for the character occurs... the sword just does not appear. I was hoping someone here could tell me why.

You might find the code a little messy.
avatar
Gamer_Mason

Posts : 6
Join date : 2012-10-07
Age : 22

View user profile

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum