Breakout game

Game Editor comments and discussion.

Breakout game

Postby ThaKid244 » Wed Apr 20, 2011 5:51 pm

Hi. I am making a breakout style game where the bar is at the bottom and you bounce the ball off of it to destroy the boxes (you know what i mean :wink: )
I have the bar, ball and boxes but i just need to know what direction to follow in order to script the ball to bounce off randomly of the bar (This includes: increasing and decreasing speed of the ball)
Can someone please help me startout on this? Thanks!!
K Thanks! ;)
User avatar
ThaKid244
 
Posts: 34
Joined: Thu Dec 23, 2010 6:40 pm
Score: 0 Give a positive score

Re: Breakout game

Postby savvy » Wed Apr 20, 2011 8:28 pm

on the ball put a collision event when it touches the brick, then make it physical response...
1.0 is a non-changing speed
less than 1.0 is decreased speed
more is increased speed.

if you want it to destroy the block, put another collision with the same actor and then make a destroy actor event: collide actor.

when you advance more, you can do a single collision event with the brick -> script editor, then add the collision and destroy in there.
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: Breakout game

Postby ThaKid244 » Fri Apr 22, 2011 5:42 pm

Thanks sav!
K Thanks! ;)
User avatar
ThaKid244
 
Posts: 34
Joined: Thu Dec 23, 2010 6:40 pm
Score: 0 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron