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

#1 2011-11-03 14:42:02

CDromatron
Scratcher
Registered: 2009-02-09
Posts: 23

Scripts not working as intending

Hey there. I'm working on a game and something are not working as I planned. Check it here: http://scratch.mit.edu/projects/CDromatron/2122657 and please download it and help fix it if you can.

Offline

 

#2 2011-11-04 00:32:37

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Scripts not working as intending

In what way is it not working as you planned? Please explain.


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#3 2011-11-04 09:42:13

Jinck
Scratcher
Registered: 2009-07-18
Posts: 100+

Re: Scripts not working as intending

I often fix script problems just by altering the order of the commands. Have you tried that?


Play Sins of A Solar Empire!!!!!!!! http://media.pcgamer.com/files/2012/03/Sins-of-A-Solar-Empire-Rebellion-5.jpg

Offline

 

#4 2011-11-04 13:12:21

CDromatron
Scratcher
Registered: 2009-02-09
Posts: 23

Re: Scripts not working as intending

I have tried that.

The problems that I'm having is that bullets are dealing more damage than they should (the small guys should die from 2 hits, they die from one, the big guys should die because of 10 but they die of 5) but when I set the damage to half they just dont work. Also the manual reload (pressing the z (or x)) only works once.

Offline

 

#5 2011-11-04 14:10:14

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Scripts not working as intending

Well, I think I've found your problem with sprites taking damage. You have scripts to deal damage to the enemy in both the enemy and ammunition sprites. Take one of those scripts out and it should work.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer