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

#1 2010-09-20 18:01:02

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

1s1s1c game

I am working on a 1 sprite 1 script 1 costume game, everything is going well, until the variable switch. It switches from 1 to 2, I try to make it go away from the goal so it can only change by one....it is frustrating!! Can somebody try help? Thanks  smile


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

#2 2010-09-20 18:03:58

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: 1s1s1c game

I'm sorry - I don't quite understand what your problem is. Can you describe in greater detail?

From what I understand, when it switches to 2, you want it to move away from the goal? Or maybe you don't want it to go any further than 2? I don't understand, sorry.  sad

Offline

 

#3 2010-09-20 18:07:44

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: 1s1s1c game

coolstuff wrote:

I'm sorry - I don't quite understand what your problem is. Can you describe in greater detail?

From what I understand, when it switches to 2, you want it to move away from the goal? Or maybe you don't want it to go any further than 2? I don't understand, sorry.  sad

your right I apologize  smile  . What I mean to say is, the level variable  is changing by 2, so all the levels cant be drawn. I think the reason is the variable is changing too rapidly while touching the goal. I want it to change only by one. hopefully that helps  big_smile


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

#4 2010-09-20 18:08:45

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: 1s1s1c game

coolstuff wrote:

I'm sorry - I don't quite understand what your problem is. Can you describe in greater detail?

From what I understand, when it switches to 2, you want it to move away from the goal? Or maybe you don't want it to go any further than 2? I don't understand, sorry.  sad

I mean it changes from 1 to 3, not 1 to 2


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

#5 2010-09-20 19:07:26

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: 1s1s1c game

Okay, you need to have it reset the player and change the level in the same step.  Make sure you don't have two scripts doing it, cuz it doesn't adjust until the motion blocks.


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#6 2010-09-20 20:34:24

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: 1s1s1c game

AtomicBawm3 wrote:

Okay, you need to have it reset the player and change the level in the same step.  Make sure you don't have two scripts doing it, cuz it doesn't adjust until the motion blocks.

ok, this seems to make sense.....but when it resets, i dont know what you mean, it is changing by 2, so the second level doesnt come


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

#7 2010-09-20 20:37:31

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: 1s1s1c game

platform710 wrote:

AtomicBawm3 wrote:

Okay, you need to have it reset the player and change the level in the same step.  Make sure you don't have two scripts doing it, cuz it doesn't adjust until the motion blocks.

ok, this seems to make sense.....but when it resets, i dont know what you mean, it is changing by 2, so the second level doesnt come

Rather than having them as two separate scripts, putting them in the same procedure should make sure it goes through it in the same order you want them in. So rather than:

Wrong

When Green Flag clicked
Forever
  If touching [door]
  change level by 1
==

When Green Flag clicked
Forever
  If touching [door]
  go to x: 50 y 50
==

Do something like this:

Correct

When Green Flag clicked
Forever
  If touching [door]
  change level by 1
  go to x: 50 y 50
==

Or however you end up doing that. The point is, combine them into one script.  wink

Offline

 

#8 2010-09-25 21:44:42

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: 1s1s1c game

okay, I fixed it  smile  I used my own way  big_smile


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

#9 2010-10-10 10:21:07

platform710
Scratcher
Registered: 2010-04-23
Posts: 100+

Re: 1s1s1c game

http://scratch.mit.edu/projects/platform710/1319733 here is the game!

Last edited by platform710 (2010-10-10 10:21:20)


http://i54.tinypic.com/2wn8hnb.gif

Offline

 

Board footer