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

#1 2010-06-05 10:12:32

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Mah Stupid Game's Not Working!

I am trying to make a pocket god like game. Big 3d island and little stickfigures taht walk around aimlessly.

The little stickfigure is supposed to stop when it touches water and turn around.

When flagclicked
forever
if colour black is touching colour blue
point in direction direction - 180

Is it the scripting or is it just the size of the sprite. (he's really small).


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#2 2010-06-05 11:21:54

ScratchReallyROCKS
Scratcher
Registered: 2009-04-22
Posts: 1000+

Re: Mah Stupid Game's Not Working!

I don't know......I tried it and it worked...

what exactly is going wrong?

Last edited by ScratchReallyROCKS (2010-06-05 11:22:31)


http://imageshack.us/a/img694/3806/sigmad.png

Offline

 

#3 2010-06-05 11:29:13

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: Mah Stupid Game's Not Working!

Colour black touching blue might not be the best thing to use since other blue and black sprites might be used?..

I'd try something like

[blocks]

<when green flag clicked>
<forever if><touching color[ blue
<point in direction( -180
<end>

[/blocks]

Or something better which would be..

[blocks]
<when green flag clicked>
<forever if><touching[ Whatever Sprite the water is if it is a Spite, not background.
<point in direction( -180
<end>

[/blocks]

I'm not sure if this will fix it, but it might since the if colour is touching colour block hasn't always been the best for me  hmm

Last edited by 06dknibbs (2010-06-05 11:31:18)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#4 2010-06-05 12:04:54

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Mah Stupid Game's Not Working!

Use
[blocks]
<point in direction( (( <direction> <-> 180 ))
[/blocks]


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#5 2010-06-05 12:27:40

johnnydean1
Scratcher
Registered: 2010-02-12
Posts: 1000+

Re: Mah Stupid Game's Not Working!

Then put wait 0.125 secs


You can now reach me on Twitter @johnnydean1_

Offline

 

#6 2010-06-05 12:34:00

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Mah Stupid Game's Not Working!

johnnydean1 wrote:

Then put wait 0.125 secs

Or make the sprite move in that direction aswell as point the other way.  tongue


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#7 2010-06-05 13:12:03

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: Mah Stupid Game's Not Working!

Ok thanks!


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#8 2010-06-05 13:13:54

qwertypower
Scratcher
Registered: 2010-02-24
Posts: 100+

Re: Mah Stupid Game's Not Working!

markyparky56 wrote:

Use
[blocks]
<point in direction( (( <direction> <-> 180 ))
[/blocks]

I did use that.


http://img690.imageshack.us/img690/8586/x1eo8x.png  http://img690.imageshack.us/img690/9164/logozrv.png
http://img693.imageshack.us/img693/8186/image843.png      http://img411.imageshack.us/img411/406/bobs.png      http://img535.imageshack.us/img535/2898/firegrob.png     Add zip the cybug, bob the sea urchin, and firegrob to your sig!

Offline

 

#9 2010-06-06 11:53:57

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Mah Stupid Game's Not Working!

qwertypower wrote:

markyparky56 wrote:

Use
[blocks]
<point in direction( (( <direction> <-> 180 ))
[/blocks]

I did use that.

big_smile
Woot.


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

Board footer