Hello,
I'm new to programming and game development, and just wanted some help with my first ever attempt. I'm a graphic design/visual communication student so game dev and programming are not things that I get to do often, however, as I have been interested in game development for sometime and we are learning interactive media design in Flash this semester, I decided to build a mobile game as my final project.
The game that I am trying to build is sort of like a simplified version of Rolando for iOS. Basically a platformer where the objective is to get the player to the end of the map by tilting the device and allowing the player to "fall" through the level.
So far I have managed to build the basic game engine, but I am unable to get the collision detection to work as well as I would like it to. The way I have made it work so far is by using Accelerometer input to move the map boundaries around the player to show movement, and using hitTests to stop the map from scrolling when it hits the player. Overall i'm OK with how it looks but I would like to improve how the game handles curved/sloped areas of the map; basically the player object should appear to slide smoothly along curved areas, and not get stuck/dig in as it is now.
Unfortunately as i'm studying at a design focused college i'm mostly on my own in figuring out the technical side of my project. I have been researching about collision detection, game physics, and fiddling with the code extensively for the past two weeks but as i've only been programming for about a month I am not able to find a solution that I can understand how to implement.
I have attached a .zip file with the .fla and have also put up the code on pastebin here. (I know I should probably be using separate class files instead of just having everything in the .fla, but I'm trying to keep things simple and not get carried away)
Would appreciate if anybody could take a quick look and point me in the right direction. I only have a few weeks left for this and I still have to do most of the visual design.
Looking forward to learning more about game development and hope that my code isn't too bad!