I'm trying to make a sword fighting game and one action is a shield. I can't figure out how to make it so that you don't lose if you get hit by the other person's sword if using your shield. I need help!
Offline
Just make it so the character only takes damage if the shield is off and make a variable to determine whether the shield is on or off.
Offline
but how do you do that? (im the same person i just forgot my password).
Offline
An alternative would be to use "if colour over colour" scripts to register hits - then make the "shield in use" costume a slightly different colour.
Offline
If button for shield is down shield down=1
else sheilddown=0
{monster attacks}
If shielddown = 0 and touching charater
change characterhp by -1
I hope this helps.
Offline
alright thanks for the help. ive got another question though. im fairly new to scratch and i don't know how to download pictures, can you help me?
Offline
Umm if you want to download pictures off the internet you left the the picture and click save as. If you want to put a picture in your scratch project you go to a sprite's costumes tab and import costume and then select your picture.
Offline
Another problem, Archmage i know your "draw your game" has some sort of gravity on the ball. Would you mind telling me how? (im not looking for only archmages answers i need all the help i can get!).
Offline
If you want gravity go to open a existing sprite and in the examples directory you will find a folder called things open it. Then find a sprite called gravity ball it has gravity codes.
Offline
Ive tried that but there is no gravity ball. Maybe i have a different version of scratch than you?
Offline
Sorry the sprite is called Gravity Marble not Gravity Ball run a system search for it.
Or download the sprite here http://www.mooload.com/new/file.php?file=file01/290607/1183076544/Gravity+Marble.sprite&s=t
Offline
Go to start and then search c drive. I not extally sure though because it can vary on the operating system.
Offline
Searching the full C: drive (or doing the Mac equivalent) can take quite a bit of time. Better to first find where Scratch is installed (in my case at C: \Program Files\Scratch, but that can vary) and then just search that directory.
Offline
Gravity ball, and other pre-made sprites (that already have code with them) are only in the most recent version of Scratch. Make sure you are using Scratch 1.1 by looking in the title bar.
Paulmedwal
Offline
Okay thanks I found it.
Offline
I have a game that i need help with. Its called space shooter (i forgot to put demo after it) Please take a look at it and tell me how to make it better. (pay special attention to how when you shoot the UFOs sometimes it just get damaged and sometimes they get destroyed? please help.)
Offline