Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Sprite Trouble is getting me....Please Help

Author
Message
Scope 51791
16
Years of Service
User Offline
Joined: 25th Jul 2008
Location:
Posted: 12th Aug 2008 08:12 Edited at: 12th Aug 2008 08:31
Ok. I have no clue what I am doing wrong. I mean, I have done sprites before...I have created them, loaded them, played them, but this time, I can't see what I am doing wrong. In my pong game, if you bounced back and forth, a powerup or something fell down. In this case a music note came falling down. But when I do the if statement to see if it should fall down, weird things happen. if I make it if 5 bounces happened, play the sprite, and I made it fall down. But That is too short. So I'll make it 50. But then than, instead of playing the sprites, it shows the image of the sprite. Then if I make the bounces shorter like 10. It is good. If I make it higher like 20 or 100, it shows the image. Has anyone had a problem that when they played a sprite, it just showed the image. How did you get over it. can anyone see what I am doing wrong. Here, i'll include the source code for that part in the game.



The reason I have so many dbPlaySprite is becuase I was desperate and wanted to see if that would stop this problem. But it does not.

EDIT: Now after playing through the game alot, I realize that if I lose a point, such as let the ball pass me, then it is the image of the sprites

EDIT: I include the demo itself so you can play and see what I am seeing. The code looks fine and can't see why this happens to the sprite.

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-09-30 05:18:48
Your offset time is: 2024-09-30 05:18:48