pinball

Talk about making games.

pinball

Postby madstrom » Sun Jun 25, 2006 2:45 pm

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
madstrom
 
Posts: 8
Joined: Sun Jun 25, 2006 12:48 pm
Score: 0 Give a positive score

Postby Game A Gogo » Sun Jun 25, 2006 2:56 pm

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!!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby madstrom » Wed Jun 28, 2006 12:40 pm

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
madstrom
 
Posts: 8
Joined: Sun Jun 25, 2006 12:48 pm
Score: 0 Give a positive score

Postby Game A Gogo » Wed Jun 28, 2006 2:10 pm

make sure the wall is thick enought so its size is bigger then the velocity!!
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest