At 7/23/13 06:44 AM, milchreis wrote:
At 7/23/13 06:16 AM, BigDeathRay wrote:
How does your code even compile?
Don't you get an error?
this isnt all the code, its just the PlayState class, there are other classes, which include the main class, player class, enemy, etc. I just put up the Playstate class cause that is where the problem is, the Player class just creates a rectangle, nothing special
_player = new Player;
addChild(_player
That method is not defined.
You'd have to extend a DispplayObjectContainer in order to be able to do this.
ah that mustve been the problem *facepalm*
You are missing a bracket.
the bracket ,meh, this was written on the reply form, and not on Flashdevelop
Your code indention is horrible.
You should indent your code with tabs to make it more readable.
th reason for bad code indention is because i was confused as how the code HTML worked, do i just copy and paste, or whatever, so i just typed it in not knowing what to expect, and i apologise for that
It looks like you threw together some lines you found on the internet without really knowing what they do.
A basic understanding is vital.
i actually tried to understand some code which was put up on the internet, although i understood it most of it, i mustve done something wrong (dont count that bracket) and thanks for the help, but could you give me an example of how you would do it ?
Ps: love that collection of websites on your blog, really nice <3