This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-07-11 18:40:09

anakinskywalkker
New Scratcher
Registered: 2012-07-10
Posts: 1

help with my star wars game

I'm having a problem, i need to make it so every time i want hurt my enemy I'm not having to press E every time so they take damage, the script for my damage thing is in my demo which you can download and look at. (the demo is on my page.) you can find the damage script in the storm troopers scripts.please give me some tips for fixing it. thanks for your time : -)

Offline

 

#2 2012-07-11 19:34:31

Spiro0
Scratcher
Registered: 2011-04-22
Posts: 22

Re: help with my star wars game

sure, I'll help.


I LOVE PURPLE!!!!!!!!!!!!!! 8 |||||||||||||||||||||||||||

Offline

 

#3 2012-07-11 19:48:26

Spiro0
Scratcher
Registered: 2011-04-22
Posts: 22

Re: help with my star wars game

You are using a variable called 25, but its value is zero. Try this script:

when [e v] key pressed
if  <touching [jedi v]>
wait (1) secs
change [storm trooper health v] by (-25)
end
if <(storm trooper health) = (25)>
switch to costume [dead v]
wait (.5) secs
hide
end

Last edited by Spiro0 (2012-07-11 19:54:07)


I LOVE PURPLE!!!!!!!!!!!!!! 8 |||||||||||||||||||||||||||

Offline

 

Board footer