I am trying to develop a side scrolling game. i wonder how will i make appear certain sprites at particular time or location? as the level progresses the enemy sprites should appear but in a predefined fashion like arcade games? just show me a right direction plzzz?
Placing Sprites in side scroll game?
(5 posts) (2 voices)-
Posted 2 years ago #
-
To make them appear at a particular location you could design some kind of level editor, and define some tile to be an spawn place for some enemies...
at the simples level you could have a text file like this:
-------E--------- -------#--------- P-----##--##---E- #################There: "-" is nothing
"#" is a floor tile
"P" is the player starting position
"E" are enemies starting position.Hope this helps
Posted 2 years ago # -
Thanx i am getting a feeling of a right direction:-) Actually i am developing an arcade shooter where the player has jets to shoot at and the player him self is playing with a fight jet, now to give the player a "flying" feel i am scrolling the background to the left hence the player is actually static and remains in a single box of 480+320, now tell me how can i program the enemies to appear at a specific time? or perhaps following some enemies?
Posted 2 years ago # -
Please don't ask the same question over many threads...
Check your other post, i wrote something there.Posted 2 years ago # -
That was about storing the Level data to file... anyway sorry.
Posted 2 years ago #
Reply
You must log in to post.