Pages: 1
Topic closed
Hello everyone,
I'm GDS and I have a problem.
No, it's not what you think. I'm having a programming problem with Scratch Attack Echo (which is essentially version five). I have the game more or less corrected, but I have two rather large problems:
1: For whatever reason, Scratch's healthbar won't appear on the web page's screen. It will show when downloaded, but not on the project page. This is kind of a problem since you can only get hit three times before losing the game...
2: I have set Scratch to take damage whenever touching black, but I never expected to take damage when hitting the borders of the window. I tried changing the background color (as in beyond the sprite I used *contains no black* for the level), but it doesn't work. Do I have to change what color I get damage from? Is there another way to avoid accidental death by screen borders?
Last edited by GreenDragonScales (2009-09-25 18:44:51)
Offline
1. If it's a variable and you're using Show 'variable' then that's a bug we all know of.
2. Odd, yes I think you need to change the window color.
Offline
Another way for number 2 is to have a sprite that covers the edge. If the sprite touches the edge, it drives it back. Change the direction of the sprite by 180 and move it an amount of steps.
Or when the sprite gets hurt, make Scratch check if it's touching the edge. If so, make the damage not count.
Last edited by Jonathanpb (2009-09-26 04:05:30)
Offline
Magnie wrote:
1. If it's a variable and you're using Show 'variable' then that's a bug we all know of.
2. Odd, yes I think you need to change the window color.
Yeah, I was using show variable for the health data. If it's a bug, why does it only affect the health bar instead of rounds or demons, which are also variables?
And how would I change window color?
Jonathanpb wrote:
Another way for number 2 is to have a sprite that covers the edge. If the sprite touches the edge, it drives it back. Change the direction of the sprite by 180 and move it an amount of steps.
Or when the sprite gets hurt, make Scratch check if it's touching the edge. If so, make the damage not count.
I didn't think of bouncing off edge (I didn't really know what it meant, honestly). That seems like a pretty good idea to use instead. Since the screen is kind of small compared to the sprites, I'll try to remove damage from it instead. (I'll let you know how that one goes...)
Offline
Topic closed
Pages: 1