Alice Community  

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

Reply
 
Thread Tools Display Modes
Bowling pin scatteR?
Old
dragon3100
Junior Member
 
Status: Offline
Posts: 5
Join Date: Sep 2011
Default Bowling pin scatteR? - 09-13-2011, 03:41 PM

I've got my lane, my ball and my pins.
I have no idea how to start so when the balls makes it to the pins, a random # between 1-10 pins get knocked down.
I have it so i can control the ball with the mouse, but thats it.

Can anyone help with this? I'd be greatly appreciated. Thank you !
   
Reply With Quote
Old
InsertName
Senior Member
 
InsertName's Avatar
 
Status: Offline
Posts: 341
Join Date: Jun 2011
Location: In a house
Default 09-13-2011, 04:18 PM

Hoo Boy, Making a bowling game with physics pushes Alice to the max (I'm quoting sombody, I just don't know who.) But if your doing it the other way making it so that the bowling pins fly into the air giving it fake physics.(not bad to do). Two ways: Make a lot of variables put in random number (integer). Set each one to be randomly picked from the lot with another variable. Can sombody else explain this I'm confused already as it is.


__№_₤⅞__
Handguns: http://www.alice.org/community/showthread.php?p=45349
MINECRAFT IN ALICE: http://alice.org/community/showthread.php?p=48208
My Stupid Animations: http://alice.org/community/album.php?albumid=119
   
Reply With Quote
Old
David B
Senior Member
 
David B's Avatar
 
Status: Offline
Posts: 1,143
Join Date: Dec 2010
Location: The Twilight Zone!
Default 09-13-2011, 05:45 PM

You can do collision detection, but it would be very hard to get the bowling pins to have a life-like response to the hit of the ball.


██████████████████████
█░░░░░░░░░░░░░░░░░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓▓░█
█░▓░░░▓░░▓░▓░▓░░▓░░░░█
█░▓▓▓▓░░░▓░▓░▓░░▓▓▓░░█
█░▓░░░░░░▓░▓░▓░░▓░░░░█
█░▓░░░░░░░▓░▓░░░▓░░░░█
█░░░░░░░░░░░░░░░░░░░░█
██████████████████████

________________

Alice Hater? Rant Here!: http://tinyurl.com/HateAlice
   
Reply With Quote
Old
dragon3100
Junior Member
 
Status: Offline
Posts: 5
Join Date: Sep 2011
Default 09-14-2011, 03:53 PM

Alight I got it, thanks for the help, it took me a bit to figure out the object collision detection, but I got it.
   
Reply With Quote
Reply

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.