The Daily Click ::. Forums ::. Klik Coding Help ::. Bouncy
 

Post Reply  Post Oekaki 
 

Posted By Message

renneF



Registered
  02/08/2003
Points
  672
7th September, 2003 at 10:19:19 -

Hi! I have a bouncy ball object that is effected by gravity(always add 1 to alterable value A and always set Y position of bouncy ball to Y of bouncy ball plus alterable value A) That I want to bounce, so I did: bouncy ball is overlapping with background, bounce, set alterable value a to 0 and set direction to up. But what happens is the ball bounces for ever! (infact they are bouncing away as I type this)
How can I make it so the ball bounces about 3 times, each bounce shorter than the last one until the ball is stopped on the ground?


 
Image

Pete Nattress

Cheesy Bits img src/uploads/sccheesegif

Registered
  23/09/2002
Points
  4811
7th September, 2003 at 11:05:30 -

try using a seperate alt value to denote the max bounce level. so you'd set it to say, 9, then subtract 3 from it whenever it hits a background, so it bounces 3 times before getting to zero. then alter your bouncing event so that it reads from that alt value so "Alt Value A = Alt Value B then set direction to x".

if that makes sense.

 
www.thenatflap.co.uk

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
7th September, 2003 at 14:59:07 -

Nah, the best way is to set value A to a minus number. So it will bounce up rather than down

 
n/a

renneF



Registered
  02/08/2003
Points
  672
8th September, 2003 at 10:59:23 -

how do I make a max bounce level change howw high it bounces?

 
Image

Joe.H

Evil Faker

Registered
  19/08/2002
Points
  3305
8th September, 2003 at 15:33:19 -

Set speed> Speed object + 1 (or more)

 
My signature is never too big!!!

Klikmaster

Master of all things Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
8th September, 2003 at 15:43:54 -

Multiply value A by -1 to change it into a minus number, to make it a different height each time, do something like this:
Active collides with background : Set value A to Value A * -1 +2

 
n/a

renneF



Registered
  02/08/2003
Points
  672
8th September, 2003 at 17:50:25 -

ok thanks !

 
Image

renneF



Registered
  02/08/2003
Points
  672
9th September, 2003 at 12:48:22 -

how would I get the angle of the bounce right though?

 
Image

renneF



Registered
  02/08/2003
Points
  672
9th September, 2003 at 13:00:36 -

I have downloaded many unhelpful examples ans so on. Can anybody help?

Image Edited by the Author.

 
Image
   

Post Reply



 



Advertisement

Worth A Click