10-08-2008, 02:14 AM
10-08-2008, 04:00 AM
10-11-2008, 04:33 AM
ok so i kind of get how to load the levels but i'm not really quite sure how to get the level to scroll as you move through it. i was thinking you would make a variable go up every time you move and check if the variable is at a certain number to move the background or something. but then if there were enemies farther in the level how would i get those to appear when i get far enough in the room. i'm really confused lol.
10-11-2008, 02:40 PM
It is called learning how to program and thinking how things work.
You set up conditions. If player is in X1 area, I do this. If player is in X2 area I do this.
If I were you, I would worry less about enemies at this time and get a character moving through some screen.
Here is an example for you to start out with: http://ajaxpatterns.org/wiki/index.php?title=Sprite#Solutions