Page 1 of 1

pinball

PostPosted: Sun Jun 25, 2006 2:45 pm
by madstrom
trying to make a pinball type game have the ball falling have the flipers they also catch the ball but im a little lost in how to make it flick it back up without it just bounceing off the flipper wile its not in a moveing state
im thinking some form of boolian
if key pressed then send ball up and increase speed depending on downward verlocity but im a little lost with how to achive this

HELP ANY ONE

PostPosted: Sun Jun 25, 2006 2:56 pm
by Game A Gogo
then try on when the flippers flip:
Code: Select all
if(collision_on==1)
{
angle=direction(actor1.x, actor1.y, actor2.x, actor2.y)+180;
directional_velocity=10;
}

and while the ball thouch the flipper
Code: Select all
collision_on=1;

and collision finish whit the flipper:
Code: Select all
collision_on=0;


that should work!!

PostPosted: Wed Jun 28, 2006 12:40 pm
by madstrom
hello ive got the flipers flipping and the ball reacting to the table
but im haveing problems with the launcher
the phisical response will work then it seem to fail could someone please explain this to me help on the launcher would be great :) all so

PostPosted: Wed Jun 28, 2006 2:10 pm
by Game A Gogo
make sure the wall is thick enought so its size is bigger then the velocity!!