|
-
Senior Member
Container system for "falling" game
I'm making a game in which you're falling down a tunnel/hole with various enemies, platforms, etc on the way. I'm somewhat new to flash with only a few games under my belt (and only one actually 100% complete) and I'm comfortable with code, but sometimes don't know the best approach to doing something... so I'm not sure how I should go about doing this.
Right now I have the player in a static y position and I'm scrolling an array of containers populated with platforms to simulate the player falling. When the bottom container gets is almost totally on the screen the top one is deleted and a new one is spawned at the bottom and populated with stuff. I'm doing it like this because I want the player to be able to/be forced to travel upwards at times. Is there a better way to go about doing this? I don't really like the player always being at the same real y location... it looks crappy in my opinion...but if I allow the player to travel around the screen and scroll the background up or down when he gets to the top and the bottom you can't see what you're coming towards while you're falling. Any thoughts on how you'd approach this? Thanks in advance.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|