Ok so I'm new to game maker but I've read the manual and I'm using GML. I would say I'm almost of an intermediate skill. I use gm 8.1 standard.
Basically for my first game I'm working on a small game, a basic breakout clone.
I'm looking for advice on making the script Bounce(direction); which is called from the balls step event.
My ball moves in a direction with a speed.
Here's how I'm hoping for the script to work:
If the ball hits the bottom or top of an object, Bounce is called. i.e. Bounce(90) would set the balls direction to 270. Bounce(91) would return / set 269.
Bounce(91) would change the direction to 89 if it hit the side of an object.
Hopefully I've made sense and you catch my drift, anyone know how to help? and thanks in advance!
Edited by jmejay, 20 August 2011 - 11:22 PM.