Posted By
|
Message
|
vSv
Registered 06/04/2010
Points 373
|
19th May, 2014 at 19/05/2014 20:00:21 -
Hi!
The problem I have is that I want my ball to bounce on everything, including the borders of the visible frame and not just on the borders of the full frame.
I thought this would be extremely easy to do, just something like "Ball is getting closer than 16 pixels from windows edge" then "Bounce" or "Y Position of Ball <=Y Top Frame" then "Bounce", but the ball won't bounce on these commands.
Is there something wrong with the built in Bouncing Ball-movement or is there some other way to achieve this?
My example file:
http://www.mediafire.com/download/kawhscbwxpkmqg0/Advanced_Bouncing_Ball.mfa
- vSv
|
s-m-r Slow-Motion Riot
Registered 04/06/2006
Points 1078
|
19th May, 2014 at 19/05/2014 22:36:19 -
Maybe have Active Objects or Backdrop Objects surround your game area as borders, then have the moving objects bounce off these borders?
I'd also recommend having the Event call for "overlapping" instead of "collides with" just to make sure it always happens, instead of only the one instance of impact.
n/a
|
vSv
Registered 06/04/2010
Points 373
|
20th May, 2014 at 20/05/2014 06:42:07 -
Originally Posted by s-m-r Maybe have Active Objects or Backdrop Objects surround your game area as borders, then have the moving objects bounce off these borders?
I'd also recommend having the Event call for "overlapping" instead of "collides with" just to make sure it always happens, instead of only the one instance of impact.
Hi!
I had hoped this would be solveable without any more "detectors" or border-like things as the ball have to be able to get outside of the visible frame as well. But it may be the solution I have to go with.
I just thought there would be some "easier" way. I'm a total newbie when it comes to the built in Bouncing Ball-movement.
I initially used the "overlapping" instead of "collides with" but it doesn't work for the Bouncing Ball-movement as the ball just keeps going through the "collides with" objects! :/
Edited by vSv
- vSv
|
|
|