Alice Community  

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

Reply
 
Thread Tools Display Modes
Simple Bounce
Old
shodai
Member
 
Status: Offline
Posts: 27
Join Date: Nov 2010
Default Simple Bounce - 05-13-2012, 05:20 PM

Ok, so I am just looking for a very simple way to have a ball bound when it hits something. Think of pong but without the players, just have a ball bounce around the screen (within the confines of of any existing object like a table or just by putting down a couple of boxes place to enclose a square).
   
Reply With Quote
Old
x2495iiii
Super Moderator
 
x2495iiii's Avatar
 
Status: Offline
Posts: 3,508
Join Date: Dec 2008
Location: Somewhere in the Continental U.S.
Default 05-14-2012, 10:38 AM

You mean collision detection?

There are a number of examples on the forums for that. The simplest is using the "is within" function to see if an object is close enough to collide with another object.


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