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

#1 2008-01-14 20:41:42

randomdude
Scratcher
Registered: 2007-12-15
Posts: 28

Need help with shield script!!!

Well, I made a Super Bros. Game (I know you probably seen this everywhere but hey I'm just trying to ace our school's Scratch assignment, so please help me ;) and I try adding a shield to my game. It was pretty successful but it was gitchy. You see, the shield does work as a proper shield, but when you hold down the shield key, I think after 3 seconds or a bit more, the shield starts to "flicker" like when you have a faulty lightbulb. I don't know how to do "a link to project" thing, so just click on my name and check it out. It's the only game there...so far...

Offline

 

#2 2008-01-14 21:22:36

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Need help with shield script!!!

Ok, I looked at your shield code and it doesn't look right. You have weird if statements put in and unnecessary hide and show blocks. Also, you shouldn't detect your attacks with colour sensing.

There is a lot wrong with this project. I'll try to fix it myself then upload it.

If you want to learn how to make a fighting game properly then look at this http://scratch.mit.edu/forums/viewtopic.php?id=2798

It focuses on AI but it also show how to properly do attacks.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#3 2008-01-14 22:23:41

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Need help with shield script!!!

Ok I fixed it. I was able to make some improvements based on my extensive experience with game construction.  wink

http://scratch.mit.edu/projects/archmage/80957

If you don't understand how something in that project works just ask here.

Last edited by archmage (2008-01-15 09:52:44)


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#4 2008-01-15 03:54:13

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: Need help with shield script!!!

archmage wrote:

Most of the code you put together wasn't  made very well.

Wow!  Zing!

It's great that you are helping the less experienced but that comment seems pretty harsh. 

Let's just say that you were able to make some improvements based on your extensive experience with game construction.  No need to put down another's work!


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#5 2008-01-15 09:07:35

randomdude
Scratcher
Registered: 2007-12-15
Posts: 28

Re: Need help with shield script!!!

Yes  I know, but archmage didn't really have to do that. I'm writing this from school and I asked my teacher about this and she said my original would have got me 90% right there. Lol. Plus, I know my scripts were messed up and all. I know that I should used an attacking variable for attack instead of color sensing but I don't really have a lot of time on my hands. My schoolwork takes me from lets say 5:00 to 10:30 (with dinner and snacks include) just to finish schoolwork without Scratch. And my classmates were like harassing me, telling me "Peter, give me your game NOW!!!!"

Offline

 

#6 2008-01-15 09:54:37

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Need help with shield script!!!

It was no problem, it only took about 30 minutes.

Also, I am sorry if I hurt your feeling with my last comment. If you keep practicing I am sure you will become a pro too  wink


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#7 2008-01-15 17:48:51

randomdude
Scratcher
Registered: 2007-12-15
Posts: 28

Re: Need help with shield script!!!

Ya, its ok, archmage. I don't really mind  smile  You are one of best programmers on the site. But the thing is that this is my first project, so I might ask you some help on the components on the script because my teacher told me that she wants a written piece about my scratch scripts.....

Offline

 

#8 2008-01-15 17:53:50

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: Need help with shield script!!!

randomdude wrote:

Ya, its ok, archmage. I don't really mind  smile  You are one of best programmers on the site. But the thing is that this is my first project, so I might ask you some help on the components on the script because my teacher told me that she wants a written piece about my scratch scripts.....

If theres a part you don't understand ask here  smile


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#9 2008-01-15 18:40:26

randomdude
Scratcher
Registered: 2007-12-15
Posts: 28

Re: Need help with shield script!!!

Well, I do understand most of the stuff, like the attacking. And I am happy that I got the shooting part. I do realize that I just complicated the game with unneccessary scripts. But I do have some confusion. The knockback that uses gravity. Well, not that I'm confused, but could you explain it to me. Feel free to reply whenever you want but before January 25th and be warned! I might still have more questions about other projects of mine! Jokes !  tongue

Last edited by randomdude (2008-01-15 19:28:07)

Offline

 

Board footer