Quote: "
What would be the best way to make my level out of sprites? With collision support and be able to side scroll. I'm making a top down zombie shooter, it also includes AI, bullets, do I move these as well if I don't move the actual player?
"
Hodgey is right, you must move things.
If the player is "moving", entities will get closer and further from "him". So that means if your player is static and the background is moving, so must you adjust the position of all entities (Incl. zombies) accordingly. But that is an easy thing to handle
remstart
This is a simplified version of a Func from a simple top-down shooter I made (You can download the game from my site, http://roundphoenix.wordpress.com, if you want to see the function in action.)
Function Scroll(Min, Max, Velocity#)
For i = Min to Max
Move Sprite i, Velocity#
Next Max
EndFunction
remstart
The reasoning behind Min and Max is to move entire ranges
of sprites in one call, ie. Baddy(1) to Baddy(10).
Positive and Negative Velocity# control backwards and forwards
But, in your case, you may want to change to Direction# if your
screen will scroll horizontally and vertically.
remend
The Pros to this method: It's really easy.
The Cons: Using sprites for a background that is too big can be resource-intensive. My game was small so I got away with it
Solutions (If the cons are a problem):
1. Split your backdrop into sections. Then write functions to destroy and create various sections based on the player's ACTUAL position (Screen position is static).
2. Use a textured 3D plane as a backdrop and sprite background entities onto it (eg a dumpster, a car, etc). You'll have to find the correct ratio when moving the backdrop VS the entities to ensure alignment but it can be done.
AS FOR BULLETS: They'll be handled in the same manner as any other entity apart from the fact that they'll be moved as well.
AI IS EASY: Simply make a call to a zombie handler inside you game loop.
If there's something unclear about what I said, let me know, I'm not always a rockstar at explaining what I'm thinking.
PS: Sorry my reply is so verbose.