Gonna be busy this weekend, going out and shit. But I wanna re-code this PONG game, without using the timeline. I think it's a good way to get used to coding with .as files.
i love playing games and i'm just trying to learn AS3, so wish me well.
Age 30, Male
610, 19061
Joined on 8/19/13
Posted by 610Games - August 22nd, 2013
Going back to my pong game I made using a nice tutorial, which I will post at the end of this post. I'm gonna see if I can use what I already learned and attempt to add my own code. This time, I will be adding comments to the coding and I'll post it up in another news post for people to look at.
My goals this time around would be: a 2-player system, high scores, lives.
I'll be using google a lot to find out some stuff, but no tutorial this time. I'll be adding things on my own, wish me luck. :p
Pong Tutorial: http://as3gametuts.com/2011/03/19/pong-1/
Posted by 610Games - August 20th, 2013
Well, I had to re-install CS5.5 because CS6 sucks dick. I been fucking with this platformer tutorial for the most of the night and it's not easy. Lots of confusing things, I'll have to go through it and try to study some of it. Some piece of code that I did understand --
//This is just telling the computer when the arrow keys are being pressed down.
function keyDownHandler(e:KeyboardEvent):void{
if(e.keyCode == Keyboard.LEFT){
leftPressed = true;
} else if(e.keyCode == Keyboard.RIGHT){
rightPressed = true;
} else if(e.keyCode == Keyboard.UP){
upPressed = true;
} else if(e.keyCode == Keyboard.DOWN){
downPressed = true;
}
}
Posted by 610Games - August 19th, 2013
Well, after a day or so I've finally understand the pong tutorial-ish. I've got the AI idea down, pretty simple. I was a little bit confused when it came to the collisions, but who wouldn't be. I'm gonna give the next tutorial a go and see how it works. I'm hoping to build on what I've learned from the pong tutorial. I also wanna learn more about 'if statements'.