can someone help me with making a ball launch anywere

Talk about making games.

can someone help me with making a ball launch anywere

Postby 98700 » Sun Jun 10, 2007 6:31 pm

the title says it all...
98700
 
Posts: 106
Joined: Fri Jun 08, 2007 3:46 pm
Location: in your closet
Score: 1 Give a positive score

Postby Sgt. Sparky » Sun Jun 10, 2007 6:32 pm

how do you want it to launch?
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby 98700 » Sun Jun 10, 2007 6:33 pm

my game is like pong
i need the ball to go random direction at start
98700
 
Posts: 106
Joined: Fri Jun 08, 2007 3:46 pm
Location: in your closet
Score: 1 Give a positive score

Postby d-soldier » Sun Jun 10, 2007 6:35 pm

Put:
angle = rand(360);
directional_velocity = 3;

In the create-actor script for the ball, and adjust the velocity to your liking.
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby 98700 » Sun Jun 10, 2007 6:37 pm

that kinda didnt work it goes in circles :!: :?:
98700
 
Posts: 106
Joined: Fri Jun 08, 2007 3:46 pm
Location: in your closet
Score: 1 Give a positive score

Postby d-soldier » Sun Jun 10, 2007 6:38 pm

You put it in the CREATE ACTOR event???
EDIT:
Works fine.. you must have used the draw-actor event...
User avatar
d-soldier
 
Posts: 703
Joined: Sun Apr 08, 2007 2:13 am
Score: 61 Give a positive score

Postby 98700 » Sun Jun 10, 2007 6:57 pm

lol i got it. ty
98700
 
Posts: 106
Joined: Fri Jun 08, 2007 3:46 pm
Location: in your closet
Score: 1 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron