Help making my first ever game...

Hello my names Jordan (AcrezHD),
Im very new not only to Corona but developing and coding in general so please forgive my noobieness.

Ok so for the past couple of days i have just looking at samples/demos and now i want to create a basic prototype for game, not anything special just basic shapes to see how the gameplay works.

My idea is i would like a to create a very basic side scrolling “trail bike” kind of game where you have to navigate to obstacles e.g rocks, ramps etc.
The controls would be very basic, one button on the right side of the screen to move/tilt forward, and another on the left to tilt back.
Once i get the basics down i would eventually like to have items along the way to collect and add to the score but i will cross that bridge when i come to it :smiley:

I would really appreciate it if anyone can help me get started and get of the ground, or point me in the right direction (i have had a look on the youtube tutorials but i cant find any specific to help me acutely start my app/game).

Once again thanks for your help in advanced and sorry for being a noob but i thought this was the best place to start…

Kind Regards,
Jordan

[import]uid: 13946 topic_id: 5086 reply_id: 305086[/import]

Your request is way too vague for us to help with, so ask some specific questions. Like, you say you looked at the YouTube tutorials: Which ones did you watch? What about them was confusing to you? Did you watch the entire thing or just glance at it and give up? Did you actually follow along and make the apps being demoed?

If you go to the Docs section of the Resources the first two links are “Corona in 5 minutes” and “Quick Start Guide.” Have you read them? Is there anything in those guides that confuses you? [import]uid: 12108 topic_id: 5086 reply_id: 16753[/import]

@jhocking i watched the 8 min tutorial (Part 1 and 2) follow though and made my own little version, i have also watched some of the basic physics tutorials.

Ok so a more specific question would be regarding the buttons to move the bike forward and back?
So i have a simple button on the screen how would i get it to make the object more forward along the ground?

Also one more thing, what is the best way of me creating the ground/floor? Scrolling background or something along those lines?

hope this is a bit more specific, sorry again for the questions :smiley: [import]uid: 13946 topic_id: 5086 reply_id: 16755[/import]

Those questions are much more specific, thanks.

To move objects in reaction to a button, you could have the listener function change the object’s position directly, but since you are gonna want to have physics then you’ll want the button to act more indirectly, by turning on a force that’s applied every frame. Something like:

[code]
local function update_bike(event)
bike:applyForce(1, 0, bike.x, bike.y)
end

local function right_button(event)
if event.phase = “began” then
Runtime:addEventListener(“enterFrame”, update_bike)
elseif event.phase = “ended” then
Runtime:addEventListener(“enterFrame”, update_bike)
end
end

button:addEventListener(“touch”, right_button)
[/code] [import]uid: 12108 topic_id: 5086 reply_id: 16795[/import]

Take a look at Lime when you have a moment - http://www.justaddli.me/

This is an add-on library for Corona. Its still being developed and is in private beta but makes it so easy to develop an app as you describe… [import]uid: 11904 topic_id: 5086 reply_id: 16818[/import]