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

#1 2011-03-03 03:37:27

misse
New Scratcher
Registered: 2011-02-09
Posts: 14

I need help making my first game

I have this level with a lot of planets. The game is about placing the planets in the right order. When a planet are placed in the right place, the score is changed by one. My problem is when I place one planet in the right place the score changes by one, but if I place on more planet right, the score wont change from 1 to 2. I don't know how to fix it, some help?

Offline

 

#2 2011-03-03 05:37:39

geladobr
New Scratcher
Registered: 2011-03-03
Posts: 3

Re: I need help making my first game

Let´s see ... U have 1 script for every planet? If so... u could put an if for every object (planet) ... if the planet is in the right place, change the score by 1 ...
and don´t use set <variable> to ... this will reset your counter. ok?

Offline

 

#3 2011-03-03 05:49:23

misse
New Scratcher
Registered: 2011-02-09
Posts: 14

Re: I need help making my first game

Thanks, ill try that!

Offline

 

#4 2011-03-03 06:02:04

misse
New Scratcher
Registered: 2011-02-09
Posts: 14

Re: I need help making my first game

Okay, i have deleted what i have made at first. My only problem now is that the score only shall be changed by 1, and not go on and on.. I tried to sort this problem by using: change variable by: "variable" * 0.001. But it only worked for one of the planets, and not the others.

Offline

 

#5 2011-03-03 20:22:28

BlackStar2010
Scratcher
Registered: 2011-01-21
Posts: 7

Re: I need help making my first game

Ah, yes... This has probably happened to all of us - you used the "set __ to __" block instead of a "change __ by __". Of course, if you have only one planet with a script, that also could be the problem...


Blackstar2010

Offline

 

#6 2011-03-05 13:04:17

misse
New Scratcher
Registered: 2011-02-09
Posts: 14

Re: I need help making my first game

you have any ideas to sort the problem? all my planets have a script, and i just want them to change my variable by one, and not go on and on and on, only one! and i want it to work for all of them. it is pretty important that i can make i work, its a school-project with a deadline in 2 weeks  smile

Offline

 

#7 2011-03-05 14:26:04

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: I need help making my first game

Can you upload the project and send a link to it so I can look at the code?

Offline

 

#8 2011-03-05 16:30:37

higejolly
Scratcher
Registered: 2009-08-08
Posts: 500+

Re: I need help making my first game

"Change (variable) by 1" then "stop script"


http://www.free-iqtest.net/images/badges2/l102.gif
Free-IQTest.net - IQ Test

Offline

 

#9 2011-03-15 17:05:14

MarySueHunterz12
New Scratcher
Registered: 2010-09-17
Posts: 16

Re: I need help making my first game

Huuuh??? I wasn't listining....

Offline

 

#10 2011-03-15 18:55:36

Kileymeister
Scratcher
Registered: 2008-04-17
Posts: 1000+

Re: I need help making my first game

MarySueHunterz12 wrote:

Huuuh??? I wasn't listining....

You don't have to listen, you can read it as many times as you want.


I'm back, and showcasing two new* projects!  Click left or right on the image below to see!
http://img109.imageshack.us/img109/7905/part1l.pnghttp://img859.imageshack.us/img859/6417/part2bf.png

Offline

 

Board footer