Plz help

Talk about making games.

Plz help

Postby raminjoon » Sat Aug 20, 2011 8:11 pm

Okay I got a ball on screen which's xvelocity=5; okay now I want it to change the velocity if it collides with another ball that is on the screen already. how? if you can't understand me plz see this pic.
Attachments
example.png
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

Re: Plz help

Postby schnellboot » Sat Aug 20, 2011 9:11 pm

ball a on collision with ball b
xvelocity=25;
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Plz help

Postby raminjoon » Sat Aug 20, 2011 9:15 pm

i think your missing a point, is not the ball b I want move I just want to increase the velocity of colliding ball how?
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

Re: Plz help

Postby schnellboot » Sat Aug 20, 2011 9:27 pm

ballA.xvelocity=25; lol
schnellboot
 
Posts: 819
Joined: Sat Mar 31, 2007 1:35 pm
Location: Germany
Score: 102 Give a positive score

Re: Plz help

Postby raminjoon » Sat Aug 20, 2011 10:19 pm

well the thing is that the original speed of my ball is in its draw actor so is it possible to change that based on a event? because I dont know how.
raminjoon
 
Posts: 40
Joined: Tue Jul 05, 2011 5:34 am
Location: Denver, Co.
Score: 3 Give a positive score

Re: Plz help

Postby Game A Gogo » Sat Aug 20, 2011 11:48 pm

having it in draw actor is useless, put the code in create actor. it will keep moving
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

Re: Plz help

Postby Bee-Ant » Sun Aug 21, 2011 1:49 am

User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest