A new game programmer

Hello, I’m a student at game programming course, right now, i’m making a game with my classmate, and thinking of launching it on mobile as well to earn a bit of allowance.

I learned C++, Lua, Java, C#, some php coding language.

I’m thinking of making a top down shooter using corona, but now i’m currently stuck. My plan is to make something like Alien swarm in 2D, and now when i’m finish my basic character control, i don’t know how to use corona to make something like a scroll map. that i can control where i move and the camera will fixate on me.

I realize i don’t know

A: does Corona have something like a camera class that i can control to scroll the screen?

B: if Corona don’t have a camera class, can i work around it somehow?

Right now, i thought about a few trick that might work, i can just scroll the background image and make it feel like i’m moving through the “map”, but i think it will feel wrong, any suggestion will be greatly appreciated.

I suggest you check out Caleb P’s excellent Perspective library.

http://code.coronalabs.com/code/perspective-virtual-camera-system

Corona does not have a built in Camera Class, but there are several contributed by the community.  You can go to http://code.coronalabs.com and search for camera.

Rob

Thanks guys. Appreciate for helping. Will go try them out

I use Level Director which contains libraries for camera tracking, the other benefit is that you can design all your levels with it to, so very simple to use.

These libraries also support repeating parallax scrolling per layer and the ability to have physics objects on different layers.

There is an example here of camera tracking using Level Director;

http://www.retrofitproductions.com/downloads/scrolling-platformer/

Hi, making sense of what you want, this is an alternative solution in the form of ****** ms paint.

The map moves at fixed rate. Enemies come from side and top off the screen. Your plane is free to move around the screen. When you reach maybe a boss, the map plays on endless loop until boss is defeated.

What you say is viable. “Right now, i thought about a few trick that might work, i can just scroll the background image and make it feel like i’m moving through the “map”, but i think it will feel wrong, any suggestion will be greatly appreciated.” Nice idea, that’s how top down shooter games work probably if you don’t intend to make your plane able to speed up and progress through map faster.

mLQhS79.png

Thanks for your first post.  Just a reminder, we expect professional behavior on the forums.  Foul language is not permitted. 

Thank you for your cooperation.

Rob

Yes,Corona does not have a built in Camera Class, but there are several contributed by the community.

I suggest you check out Caleb P’s excellent Perspective library.

http://code.coronalabs.com/code/perspective-virtual-camera-system

Corona does not have a built in Camera Class, but there are several contributed by the community.  You can go to http://code.coronalabs.com and search for camera.

Rob

Thanks guys. Appreciate for helping. Will go try them out

I use Level Director which contains libraries for camera tracking, the other benefit is that you can design all your levels with it to, so very simple to use.

These libraries also support repeating parallax scrolling per layer and the ability to have physics objects on different layers.

There is an example here of camera tracking using Level Director;

http://www.retrofitproductions.com/downloads/scrolling-platformer/

Hi, making sense of what you want, this is an alternative solution in the form of ****** ms paint.

The map moves at fixed rate. Enemies come from side and top off the screen. Your plane is free to move around the screen. When you reach maybe a boss, the map plays on endless loop until boss is defeated.

What you say is viable. “Right now, i thought about a few trick that might work, i can just scroll the background image and make it feel like i’m moving through the “map”, but i think it will feel wrong, any suggestion will be greatly appreciated.” Nice idea, that’s how top down shooter games work probably if you don’t intend to make your plane able to speed up and progress through map faster.

mLQhS79.png

Thanks for your first post.  Just a reminder, we expect professional behavior on the forums.  Foul language is not permitted. 

Thank you for your cooperation.

Rob

Yes,Corona does not have a built in Camera Class, but there are several contributed by the community.