Alice Community  

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

Reply
 
Thread Tools Display Modes
Bowling Game
Old
jackH66
Guest
 
Status:
Posts: n/a
Unhappy Bowling Game - 04-28-2011, 12:52 PM

Milone dog assigned me with an assingment to make a bowling game , i am having a bit of difficulty with making the method for if the ball goes out of bounds, you have to retry. . Can someone help me please?
Attached Files
File Type: a2w bowlz.a2w (484.6 KB, 29 views)
   
Reply With Quote
Suggestions
Old
MrMoke
Senior Member
 
MrMoke's Avatar
 
Status: Offline
Posts: 500
Join Date: Sep 2007
Location: Austin, Texas
Default Suggestions - 04-28-2011, 03:12 PM

Boundaries are the most difficult as they are dependent on proximity to the center point of a given object. Each section of alley has only a single center point, so depending on the direction of the L/R axis, checking if the ball is too far left or right might work for your alley list. The other alternative is to surround the alley with smaller objects, put them into a list, and not let the ball get too close to them using forAllTogethers.

You should also build a world list similar to your alley list for the pins, or they will never fall down.

You will need to have more control over the ball, so you should build seperate keyboard "while key is pressed" event methods for each direction(forward, left, right).

Last edited by MrMoke; 04-30-2011 at 08:23 AM.
   
Reply With Quote
Reply

Tags
bowling, fun, game, milone dog

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 ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.