Project management advice needed and some guidance with orientation and d-pad controller.

First off hi!

I’m very new to the environment, but am really enjoying it… I’ve made more progress with Corona in one week than I did in 2 months with cocos2d, I guess it just suits my way of working.

I have been whirling through the various tutorials, with a view to learning stuff that’s pertinent to my ‘game idea’, as opposed to learning everything first. Yes yes, I know this isn’t the most healthy learning methodology, but I tend to absorb info better if I can stay motivated.

Don’t get me wrong, I’m not expecting the Corona Community to write my project for me, in fact I’ll probably take one of Corona’s paid access-courses at some point, but for now I just need ‘to pass go’, so I’m looking for some advice on a few issues I’ve encountered, including some guidance on making the right decisions within my project-set up.

First thing’s first, I’m planning on making something like a multi-directional top-down racer see http://www.coronalabs.com/blog/2011/10/13/guest-post-more-thoughts-on-flash/

I know it’s ambitious for a first timer, but I do like to get my teeth into stuff and although bouncing balloons around the screen is very important, my desire to produce something is overwhelming.

My first question is logistical more than technical. It appears that there are two ways to go about creating a decent top-down racer, with regards to how the whole thing ‘moves’; 1. You move the ‘track’ not the ‘car’ or 2. You use a camera class to follow the ‘car’ around the ‘track’. Whilst thinking about this, I came to the conclusion that, if there’s other ‘racers’ on the ‘track’, it would be far easier to plot their ‘path’ and align them to the track if it wasn’t being ‘moved around’. If you understand what I’m getting at, your opinions and/or advice would be greatly appreciated.

My second question IS a coding issue. After doing Ray Wenderlich’s ‘Doodle Jump’ tutorial, I realised that I would need to be able to get a good understanding of, and implement some of his orientation code. My problem is this; When corona adds a display object to screen it’s relative to it’s own X/Y values, governed by my specified ‘world size’ for instance. Ray imports his sprite sheet like so:

[lua]local function loadLevel()
localGroup = display.newGroup()
loader = LevelHelperLoader:initWithContentOfFile(“level1.plhs”)
loader:instantiateObjectsInGroup(physics, localGroup)

worldHeight = loader:getWorldBoundariesRect().size.height
localGroup.y = -worldHeight + 480[/lua]

The last line moves his group up, which is great, but I’m hoping to use multi-directional scrolling so I need the ‘initial viewpoint’ to be central to my world height / world width (otherwise my ‘sprite’ would not be able to travel left or up at the start). I cant really get my head around this issue, even after reading at some length (remember, I’m new here, be gentle)… Here’s an image which I hope will clarify my point: http://www.grocklebuddy.com/orientation.jpg

The last thing (for now anyway)… I’m looking for a good tutorial which will help me to achieve a specific function: Rotating a sprite around a central reference point with a controller. If you know of a tutorial that deals with a similar issue, please point me in that direction. I’ve looked at several D’Pad tutorials, but my requirement is a little more specific, I would like very much, to rotate my sprite through 360 using an up/down slider… Here’s another pic to help describe (There’s only ONE arrow, the others represent the same arrow in different states of rotation) http://www.grocklebuddy.com/rotate.jpg

That’s it for now, I’m sorry, I know it’s been a long post, but I want to get into the habit of being really succinct when on this forum, I hope it all makes sense.

Best regards

Mark [import]uid: 176868 topic_id: 31119 reply_id: 331119[/import]