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

#1 2008-07-23 19:41:32

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Help. (Please)

i am making a snake-type game, and am using  this script for the pen:

<when I receive[ Start ]
<forever>
<pen down>
<wait( <{ Dificulty }> )secsc>
<clear>
<if><( <{ Lose }> <=> 1 )>
<stop script>
<end>
<end>

And this script for losing:
<when green flag clicked>
<reset timer>
<broadcast[ start ]
<show>
<set{ Lose }to( 0
<forever>
<if><touching color[ Pen Color ]
<set{ Lose }to( 1
<hide>
<clear>
<end>
<end>

Last edited by AlanProjects (2008-07-23 19:42:00)

Offline

 

#2 2008-07-23 19:43:07

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help. (Please)

??? What's the question? And what are the sprites again?


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-23 19:49:09

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

Arrjgsdsjjdscjhcv. How to make a snake(classic arcade game) style game that makes it so that if you run into the pen, you lose.

Offline

 

#4 2008-07-23 19:51:04

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help. (Please)

Is it starting or not starting? Cause it already is touching that color to begin with


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#5 2008-07-23 19:55:58

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

Exactly. i know the pen is always touching the sprite, but i can't think of an alternative  mad  it is getting annoying!

Offline

 

#6 2008-07-23 19:57:06

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

It starts fine, you just instantly lose arghakdwjhkqwjghdcjqcdjkqwbc

Offline

 

#7 2008-07-23 20:34:18

newareagle
Scratcher
Registered: 2008-06-10
Posts: 100+

Re: Help. (Please)

Its because when you draw the line with your pen you are going over it. I would suggest making the center point of the snake a few mm's from the tail of the snake so it doesn't run into it. Or sense so that when the head (Different color than body) is touching the pen color it does that.


My Guitar Hero Game.
8/9 Projects on the Front Page at Once!

Offline

 

#8 2008-07-23 20:42:08

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

oh. i'll try.

Offline

 

#9 2008-07-23 20:44:13

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

Nope. doesn't work.

Offline

 

#10 2008-07-23 20:44:43

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help. (Please)

AlanProjects wrote:

Nope. doesn't work.

Make it 2 sprites. You know, snake is a very hard game to make on Scratch FYI


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#11 2008-07-23 20:51:40

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

Yeah, so? it isn't really snake, more like a game where, in an ideal world, you choose your difficulty setting on a slider, which makes the pen go down for "diffficulty" seconds, and then clear. If you run into you're pen trail, you lose.

Last edited by AlanProjects (2008-07-23 20:52:04)

Offline

 

#12 2008-07-23 20:53:16

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: Help. (Please)

AlanProjects wrote:

Yeah, so? it isn't really snake, more like a game where, in an ideal world, you choose your difficulty setting on a slider, which makes the pen go down for "diffficulty" seconds, and then clear. If you run into you're pen trail, you lose.

Anything like it is extremely difficult in Scratch. All I can say is good luck


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#13 2008-07-23 20:56:30

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

Bluestribute wrote:

AlanProjects wrote:

Yeah, so? it isn't really snake, more like a game where, in an ideal world, you choose your difficulty setting on a slider, which makes the pen go down for "diffficulty" seconds, and then clear. If you run into you're pen trail, you lose.

Anything like it is extremely difficult in Scratch. All I can say is good luck

sad  ..........................................................................

Offline

 

#14 2008-07-23 21:25:39

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

Re: Help. (Please)

AlanProjects wrote:

Yeah, so? it isn't really snake, more like a game where, in an ideal world, you choose your difficulty setting on a slider, which makes the pen go down for "diffficulty" seconds, and then clear. If you run into you're pen trail, you lose.

Sound interesting!  The tail would only be there from time to time since the Clear command would wipe it out...still, it sounds like it would be fun.  You could make the nose of the sprite a different color and then test for if that color is touching the pen color...I wonder if that would work?  Or...you could use a second sprite that has a rotation center that is actually on the sprite.  The pen would appear at the rotation center but the sprite would not be touching the pen color.


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

Offline

 

#15 2008-07-23 21:28:13

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

Paddle2See wrote:

AlanProjects wrote:

Yeah, so? it isn't really snake, more like a game where, in an ideal world, you choose your difficulty setting on a slider, which makes the pen go down for "diffficulty" seconds, and then clear. If you run into you're pen trail, you lose.

Sound interesting!  The tail would only be there from time to time since the Clear command would wipe it out...still, it sounds like it would be fun.  Are you going to make it?

I don't know. i'm running into problems. because when the pen is down, it always touches the sprite you instantly lose. i could post to show you, if you want. Right now i'm working on an annoying scroller.

Offline

 

#16 2008-07-23 21:32:46

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

Re: Help. (Please)

I was making an edit when you grabbed my quote...please look back at my original post...it has some ideas that might work.


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

Offline

 

#17 2008-07-23 21:35:38

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

oh, i think those are great ideas! i'll test them. I like the nose one most.

Offline

 

#18 2008-07-23 21:43:35

AlanProjects
Scratcher
Registered: 2008-06-23
Posts: 500+

Re: Help. (Please)

YEAH!!!!!!! IT FINALLY WORKS! I'll POST IT SOON!!!!  smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile   smile

Offline

 

#19 2008-07-25 13:45:31

Maker
Scratcher
Registered: 2008-07-07
Posts: 30

Re: Help. (Please)

or you just remix the ladybug game that scratch 1.2.1 comes with...


http://img201.imageshack.us/img201/9176/mybanner488622f31da7bpx6.png

Offline

 

Board footer