O.K. So I have recently 'joined' Scratch and after thinking of an idea for a game I don't know how to make it...
... so, all you experts out there please help with these following question
1. How can you make a sprite (is that it?) fire a bullet etc?
2. Can (and mabey how) you make a computer controlled opponet e.g. for my game, a tank which move around the 2D obstacles and shoots back?
3. Probabley most importantly, HOW DO YOU MAKE A IMPASSABLE WALL!!! I have tried:
<if>
<touching color[
<move(-1 )steps>
... This works if the sprite moves forward into it but 'glitches' if you hit the colour diagonally, making supossedly impassable walls just 'jumpable/tough to pass' obstacles, NOT WALLS!!! IT'S DRIVING ME CRAZY SO PLZ HELP! Thank you so much
Offline
I can answer #3. The wall should be a sprite, not just a color.
Try:
Forever
If Sprite1 touching Wall
Broadcast "Reached Wall"
Move -1 steps
Not sure if this will have the same glitch, but it might work. Hope this helps!
Last edited by PlutoIsHades (2011-07-01 14:08:09)
Offline
<when green flag clicked><forever if><touching[ Wall ]<move( -3 )steps>
The Wall is the sprite you are trying to make impassable.
Last edited by SpriteMaster (2011-07-02 12:05:39)
Offline
Sphingo wrote:
I get that but the wall isn't a sprite, it's part of the background. SORRY!
THANKS ANYWAY!
That will work if you say -Touching coluor (Colour of wall) -
Offline
Sphingo wrote:
O.K. So I have recently 'joined' Scratch and after thinking of an idea for a game I don't know how to make it...
... so, all you experts out there please help with these following question
1. How can you make a sprite (is that it?) fire a bullet etc?
2. Can (and mabey how) you make a computer controlled opponet e.g. for my game, a tank which move around the 2D obstacles and shoots back?
3. Probabley most importantly, HOW DO YOU MAKE A IMPASSABLE WALL!!! I have tried:
<if>
<touching color[
<move(-1 )steps>
... This works if the sprite moves forward into it but 'glitches' if you hit the colour diagonally, making supossedly impassable walls just 'jumpable/tough to pass' obstacles, NOT WALLS!!! IT'S DRIVING ME CRAZY SO PLZ HELP! Thank you so much
Number 1- you need 2 sprites. Like a cat licking its paw you need a cat then its leg and paw, drawing it to its mouth where you can make it lick the paw. Do I make sense?
Number 2- I think its impossable... or try making you press space and you shoot and computer- when touched by bullet,shoot back and if you are touched back brodcast dead and make it say " YOU HAVE DIED!". Still im not sure. sorry. :[
Offline
Thanks sorentheguardian! I get what you mean!
O.K. THIS IS THE CHECK LIST
1. Yes I can fire a bullet so done
2. Probably impossible so done! (will post on advanced topics though)
3. Probably will work with a sprite but i need a impassable wall from sensing a colour X
THANKS GUY YOU ARE THE BEST KEEP WORKING ON IT FOR ME I AM VERY GREATFUL!!!
Offline
Sphingo wrote:
Thanks sorentheguardian! I get what you mean!
O.K. THIS IS THE CHECK LIST
1. Yes I can fire a bullet so done
2. Probably impossible so done! (will post on advanced topics though)
3. Probably will work with a sprite but i need a impassable wall from sensing a colour X
THANKS GUY YOU ARE THE BEST KEEP WORKING ON IT FOR ME I AM VERY GREATFUL!!!
thats ok. ;3
Offline
Sphingo wrote:
I'm Begin to think it's not possible to do 3. now! plz post anything and see my prodjects. If you have, u will see there is only one because 3. is SUCH A BIG PROBLEM!!!!!!!!!!
Yes, it is almost impossible. I think something should be fixed about that.
Offline