PDA

View Full Version : 2D Sidescroller FLA?



kerek
March 29th, 2005, 11:51 PM
Hey, I've been having some trouble with my game recently and I haven't been able to get much help on the boards. So I was wondering if anyone knew of an open source 2D sidescroller FLA?

One with multiple levels would be extremely ideal.
I need to master the following things: scrolling up and down when the character moves up and down levels and when they do, having the hit test limits of the game to properly follow suit.

Any FLAs you guys know about?

nathan99
March 30th, 2005, 06:05 AM
Couldnt you jus use something like an rpg code?

kerek
March 30th, 2005, 01:56 PM
I dont think so. This should have multiple platforms but you can only walk left or right.
Up and down would be jumping and falling. It has to scroll in real time with the movements of the character. I don't want it to scroll when you reach a certain area or whatever. I want the character to always be centered.

So with that said, will an RPG fla work? If so, no harm in posting it.

squishy
March 30th, 2005, 04:10 PM
trace the x position of your person and...no have the screen AND the person move :D

kerek
March 30th, 2005, 08:24 PM
I really have no idea what you mean...... :| :crying:

Blackspirit
March 30th, 2005, 10:42 PM
Just use tonypa's engine.

Of course you'll need to program the more game specific stuff. But its all there.

http://www.tonypa.pri.ee/tbw/index.html

kerek
March 31st, 2005, 12:30 AM
Except I'm making a art based game, sorry for the mix up.

syspeat
March 31st, 2005, 07:37 AM
i got code that could help ya, its paralax scrolling you want? Im using it in a game atm, ill dish out the code...

syspeat
March 31st, 2005, 07:43 AM
i had this sitting inside my player ship code:


//shift scene to follow ship inverse
_root.shiftScreen=((-_root.ship._y+200)-(_root.terrain._y*2))/12;
_root.terrain._y += _root.shiftScreen


that +200 was just to centre it (think the graphic musta been 400 wide), just play around with varibles till its right but that does the job nice for me, giving you an easing effect as well.