Scoring System
5 posts • Page 1 of 1
Scoring System
Can you set something so that it adds ten points to a box when a ball hits something, like saying on a box: score= 10 and then when a seperate ball hits something the box says score= 20? Thank you.
- HiredRock
- Posts: 5
- Joined: Wed Jan 27, 2010 3:16 am
Re: Scoring System
It's a basic thyme. Try to figure out by yourself how scripts works.
1) scene.my.score := 10 in console
2) (e) => {scene.my.score = scene.my.score +10} in onCollide event of ball
3) {"Score: "+scene.my.score} in box's text property
1) scene.my.score := 10 in console
2) (e) => {scene.my.score = scene.my.score +10} in onCollide event of ball
3) {"Score: "+scene.my.score} in box's text property
Dream of Algodoo as game development engine...
-
Kilinich - [Best bug reporter 2010]
- Posts: 2098
- Joined: Mon Aug 31, 2009 8:27 pm
- Location: South Russia
Re: Scoring System
What is the box's text property?
- HiredRock
- Posts: 5
- Joined: Wed Jan 27, 2010 3:16 am
Re: Scoring System
Are you sure you want to do something like that before watching some tutorials?
-
KarateBrot - Posts: 825
- Joined: Mon Aug 31, 2009 7:32 pm
- Location: Germany
Re: Scoring System
Yeah this is very simple scripting. That Tutorial ^ will tell you everything
-
niffirg1 - Posts: 376
- Joined: Mon Aug 31, 2009 10:31 pm
- Location: The Great American South!
5 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest