Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Thread Tools Display Modes
Help with scoring
Junior Member
Status: Offline
Posts: 1
Join Date: May 2012
Location: Chanute, KS
Default Help with scoring - 05-02-2012, 11:49 AM

I can not get this to keep score. the helicopter is suppose to go through the rings and score. but i cant get it to work. can someone please help me?
Attached Files
File Type: a2w tweedyfinal.a2w (4.60 MB, 19 views)
Reply With Quote
Junior Member
Status: Offline
Posts: 7
Join Date: Feb 2012
Default 05-07-2012, 01:33 AM

I found a couple of errors in your code that are easy to fix in the "my first method" tab you have it play the music infinite times before checking for collision.

You need a "do together" command so they both work at the same time.

In addition you also need a loop infinite around the check for collision so that it constantly checks for collision.

Your collision detection is also a bit sketchy i wasn't really sure what you were trying but what I did was create a method that had an if else statement that looks like this
--IF [[helicopter distance to [torus]] < 1]
---Score Increment

Then create that same if/else statement inside that do together for each torus

If you want to see the code i came up with let me know
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Copyright ©2023, Carnegie Mellon University
Alice 2.x © 1999-2012, Alice 3.x © 2008-2012, Carnegie Mellon University. All rights reserved.