![](https://i.ytimg.com/vi/1hf0HYq5yzc/maxresdefault.jpg)
Writing your first Android game using the Corona SDK!
AndroidAuthority,Android,Corona SDK,Writing Games for Android,Coding games for Android,Using Corona SDK Android,Android Games,Android Development,Software Development Kit (Software Genre)
Get 75% off our official Android Development course run by Gary Sims himself:
Android is a versatile operating system, and making games for it can be incredibly rewarding. Check out Gary’s video on how to write your first Android game using the Corona SDK!
Talk about Android in our forums:
Subscribe to our YouTube channel:
—————————————————-
Stay connected to Android Authority:
-
-
-
-
—
Follow the Team:
Josh Vergara:
Joe Hindy:
Lanh Nguyen:
Jayce Broda:
Gary Sims:
Ash Tailor:
#Writing #Android #game #Corona #SDK
Dude, shave. Really, I can’t concentrate on your video because of your disgusting beard.
There is an app on google play store called Pocket Code which allows you to create native android apps in a programing language similar to scratch.
Nice guide! You guys should do more of these videos! Maybe i can make a start on creating apps using this tutorial. Thanks! 😊
First
Looks a lot of like C/C++.
Nice video by the way.
main.lua:43: ERROR:table expected if this is a function call you might have used’.’ instead of ‘:‘
stack traceback:
[C]: in function’addBody’
main.lua:43: in function ‘addBalloonOrBomb’
main.lua:56: in main chunk
So when I have a score of 7, and hit a bomb, it divides to 3. I’m guessing this is because of the data type score is, so how do you make it an number with decimals?
so we just type these set of codes right after each other?
So im trying to add sound effects for the popping of balloons and hitting bombs..
Where do i tell the game to play the sounds, in the ballonTouched(event) or do i need to create anouther event for it?
Been trying this..
local function balloonTouched(event)
if (event.phase == “began”) then
audio.play(balloonPop, optionsBalloonPop);
Runtime:removeEventListener (“enterFrame”, event.self);
event.target:removeSelf();
score = score + 1;
scoreText.text = score;
end
end
Thanks
How do i add a new object? I want to make another object that it will give more points, I did everything i need same as in balloonn part but i don’t know what to do in BallonOrBomb part,how do i write the 3rd object? ( I wrote it in else if part). Tnx
Instead of event.target:removeSelf() it is better to use display.remove(event.target).
Display.remove will first check if the object exists before attempting to remove it. If the object doesn´t exist, it does nothing.
If the object does´t exist when you use removeSelf, the app crashes and burns 🙁
You dont know how to explain , for me the box to drag dosent appear , if you do another video show where you tipe the code ( i know were you sayd) but do it good ore dont do it at all
good tutorial thank you
and yet, no linux support?
…yeah…
Please help me » C:UsersYatogamixDocumentsCorona ProjectsTestemain.lua:3: Native UI objects on Windows do not support the “hasBackground” property.
Hi, Gary! Your tutorial was one of the first ones, that helped me in getting started with. I just wanted to say thank-you, now, I have just launched a fun game, using the Corona SDK.
It’s on playstore : https://play.google.com/store/apps/details?id=com.bewtechnologies.eightbitsoccer
It’s my first game, so any reviews/ratings on the app would be appreciated. 🙂
Mr. Gary » thank you very much
Nice video Gary, thanks. I have a question — I know a bit of Java and Obj‑C, do you think Corona is a good place to start making games or would Stencil be easier/quicker? Basically how do these platforms compare in terms of flexibility vs ease/speed of development?
Thank you!
This video was very helpful. Explained everything in a nutshell. This video encourages to create games with corona. Thank you
i just followed as you show but when i try to run •
it’s shows this:
main.lua:65: attempt to call global ‘addNewBalloonOrBomb’(a nil value)
.….
what sjould i do
Great video.
Hi i wanted to know how to make a game like candy crush (Jewel Saga) and
a rpg games with corona sdk could you create a video for that thanks.
Thumbs down for not answering any of the comments when you said you would help.
is Corona can connect with android studio
Can you do a tutorial for a basic clicker game please? with upgrades? Just got corona and im struggling to get the hang of it.
subscribed
Thanks Gary, that was most helpful. Cheers!
Corona looks good for 2d. Love your vids Gary — keep them coming. Thanks!
hmm, nothing commented on the corona virus, quite interesting
corona haha
Yeah ain’t nobody gonna use that thing again
for those who can’t make this work. The event.phase==begin should read “began” and you need to make sure your images are the same names as his(or that they exist in the folder with main.lua). Further, I ended up having to use actualContentWidth and height for my background image.
i’m here because i searched corona game
Last 4 years : corona . Hell yeah
2020: social distancing
can i use corona with java language
Look like corona lol
i did everything like the video and its fine but when i get to the last two it says main.lua:52 ERROR: table expected. if this is a function call, you might have used . instead of :
stack traceback:
[C]: in function ‘add body’
main.lua52: in function ‘addNewBalloonOrBomb’
main.lua58: in main chunk
anyone know what i did wrong?
thank you sir, thank you so much, I am from future 6 years later form 2021
Can i have your whole codes mr. I want to try it. Please ☺️