How do you make a character fixed in the center of the screen spin in place using right and left touch buttons? I know I’ll need different graphics for different positions but exactly how many will I need?
- Top down game w/o perspective - 1 image
- Top down game w/ perspective, but w/o animation - 8 minimum ( one for each of the cardinal directions and one for each half-angle between; i.e. one per 45 degrees)
- Top down game w/ perspective and w/ animations - a minimum of 8 X all animation frames.
See the game we (Corona Geek Hangout) did here:
Although it is called a ‘top down shooter’ it evolved into something else as we worked on the game over several weeks of shows.
What exactly do you mean by perspective? The screen never changes and the character stays in the center but he will be able to shoot in all directions at the incoming enemies
Top-down vs isometric vs … others.
My apologies for using inexact terminology, but the point I meant to resolve was, “If you hope to use isometric or a similar projection, you’ll need several images to properly render the object. Versus a simple top-down projection which can be rotated as it has no depth.”
http://www.cs.cornell.edu/courses/cs3152/2013sp/lectures/15-Perspective.pdf
The problem is I didn’t understand the question as it didn’t give enough context. I’m not complaining per-se, as this is a common issue in forums posts. You have a picture of what you want your game to look like and behave like in your mind, but you didn’t give enough information for me to visualize it and properly. Thus, my answer was inexact or even not applicable.
I’m really not complaining here, but hoping I can help you ask better questions later.
When you have a mechanic or aesthetic you are stuck on and want help implementing it, the best way to get help is to:
- Describe what you want to achieve clearly, concisely, and precisely.
- Provide reference materials:
- Links to videos (at the time the feature is shown)
- Links to still images showing the concept.
- Links to uploaded images/hand drawings showing the concept.
Please realize, when you ask a question and it isn’t clear exactly what you want to achieve, those of us who have done this for a while may fill in the ‘blanks’ with details we know about. i.e. There are many ways to do things and we may be picturing something completely different from you.
Sorry for the long post, but you’ve been sincere and curious in the little time I’ve seen you in the forums and I hope you’ll continue to stick around and ask more and learn more. This is my way of helping :unsure:
I see where you are coming from, my apologies for being unclear on what I was seeking. You’ve been a great help so pardon me as I am new to lua, some of the gaming terminology, as well as the way the forum works.
My main question is what function would enable me to spin my character and how many images would I need. You answered that but I was just unsure of the difference between a top down game with perspective versus a top down game without perspective, nothing you said was unclear.
sorry for the confusion and thank you for bearing with me!
Cool. No function needed to rotate. Simply set the display object’s rotation field as follows:
local bob = display.newImageRect( "bob.png", 100, 100 ) bob.rotation = 45 -- Bob is now rotated to 45 degrees.
- Top down game w/o perspective - 1 image
- Top down game w/ perspective, but w/o animation - 8 minimum ( one for each of the cardinal directions and one for each half-angle between; i.e. one per 45 degrees)
- Top down game w/ perspective and w/ animations - a minimum of 8 X all animation frames.
See the game we (Corona Geek Hangout) did here:
Although it is called a ‘top down shooter’ it evolved into something else as we worked on the game over several weeks of shows.
What exactly do you mean by perspective? The screen never changes and the character stays in the center but he will be able to shoot in all directions at the incoming enemies
Top-down vs isometric vs … others.
My apologies for using inexact terminology, but the point I meant to resolve was, “If you hope to use isometric or a similar projection, you’ll need several images to properly render the object. Versus a simple top-down projection which can be rotated as it has no depth.”
http://www.cs.cornell.edu/courses/cs3152/2013sp/lectures/15-Perspective.pdf
The problem is I didn’t understand the question as it didn’t give enough context. I’m not complaining per-se, as this is a common issue in forums posts. You have a picture of what you want your game to look like and behave like in your mind, but you didn’t give enough information for me to visualize it and properly. Thus, my answer was inexact or even not applicable.
I’m really not complaining here, but hoping I can help you ask better questions later.
When you have a mechanic or aesthetic you are stuck on and want help implementing it, the best way to get help is to:
- Describe what you want to achieve clearly, concisely, and precisely.
- Provide reference materials:
- Links to videos (at the time the feature is shown)
- Links to still images showing the concept.
- Links to uploaded images/hand drawings showing the concept.
Please realize, when you ask a question and it isn’t clear exactly what you want to achieve, those of us who have done this for a while may fill in the ‘blanks’ with details we know about. i.e. There are many ways to do things and we may be picturing something completely different from you.
Sorry for the long post, but you’ve been sincere and curious in the little time I’ve seen you in the forums and I hope you’ll continue to stick around and ask more and learn more. This is my way of helping :unsure:
I see where you are coming from, my apologies for being unclear on what I was seeking. You’ve been a great help so pardon me as I am new to lua, some of the gaming terminology, as well as the way the forum works.
My main question is what function would enable me to spin my character and how many images would I need. You answered that but I was just unsure of the difference between a top down game with perspective versus a top down game without perspective, nothing you said was unclear.
sorry for the confusion and thank you for bearing with me!
Cool. No function needed to rotate. Simply set the display object’s rotation field as follows:
local bob = display.newImageRect( "bob.png", 100, 100 ) bob.rotation = 45 -- Bob is now rotated to 45 degrees.