Just Join $99 need a little help
UtopianGames
Member Posts: 5,692
Hi Guys,
Signed up to the $99 to make iPhone games, i've come from a game maker background so it's all a little differnt.
Im trying to have a single room with a 480x320 view and have small balls 48x48 bounce around within this area.
Any help to get the balls to start moving at a random direction when the room starts and bounce off each other would be great.
I also cant find anything that stops the balls going out of view so am i correct in thinking theres no wrap limit available to stop the balls going off screen and i need to make some blockers out of view to bounce the balls back in?
Thanks in advance,
Darren.
Signed up to the $99 to make iPhone games, i've come from a game maker background so it's all a little differnt.
Im trying to have a single room with a 480x320 view and have small balls 48x48 bounce around within this area.
Any help to get the balls to start moving at a random direction when the room starts and bounce off each other would be great.
I also cant find anything that stops the balls going out of view so am i correct in thinking theres no wrap limit available to stop the balls going off screen and i need to make some blockers out of view to bounce the balls back in?
Thanks in advance,
Darren.
Comments
Then in the ball actor put a change velocity behavior and use the expression editor in the angle section (the little "e"). In the expression editor click on random. Change the x,y to the lower and upper limits for the angle. The game will then select a random angle between those limits. You could also create a rule that says
Rule
when collides with wall
change velocity (just copy the one from above). Then it will bounce off the wall at a completely random angle (which won't look natural but could be useful for certain games)
I need the balls to bounce off each other and the wall in a way that looks natural....i will have a play and get back.
Darren.
All i need now is to work out how to touch the screen and if ball is within a certain distance of the initial touch make it go -180 away from the touch.
Imagine fish in water and your the wave machine..best describes it.
Darren.