Basic Bingo App

I am brand new to this. I want to create an app that has a grid of 25 boxes. Each row of boxes has a number designation that is randomized each game. IE: row 1 has 15 random letters between the 5 boxes. Row 2 has 15 letters etc. These boxes can be selected then sent to us with screen print through email, text, etc. Is there any tutorials or guides how to accomplish this? I was thinking of a Bingo app or something like that.

There are tutorials on the site and you should take a look at the samples which come with the Corona app.

Making a game or an app is a process.  If you are super newbie I think you should start with some display rects, texts and simple fuctions to make a start, then if you are experimenting some troubles, come here with some code, no with the whole idea cause its very difficult to be in your mind to know how exactly you want.

I recommend that you start with the Getting Started guide.

Good luck, and I would like to see you again with some code.

DoDi

I have done your basic balloon bounce exercise.  I was able to build the app.  This really didn’t give me the information I need to progress.  What is the second step in developing skills etc.  I would like to learn, but this one exercise isn’t enough.  Where do I go from here, with the app I described in mind. 

There are a couple of different things you’re asking here. Perhaps focusing on part of the app that you’re struggling with and narrowing the focus of what you need help with like selecting 5 items from a list of 15. Or drawing a 5x5 grid on the screen. Once you solve one part of the problem, then asking for the next part will help narrow down the scope. It will make it easier on the community to respond to you.

Now let me jump into the 5x5 grid. There are a couple of tutorials you might be able to draw some inspiration from:

https://coronalabs.com/blog/2014/08/12/tutorial-building-a-level-selection-scene/

That tutorial is probably a lot of overkill for what you’re trying to do, but it does create a 5xN grid of numbers on the screen. You can cut through a lot of the fluff to get to just what’s needed to create a grid.

https://www.youtube.com/watch?v=_9CK88YR7SQ

This is a video tutorial on building the game of Tic-Tac-Toe, which if course is a 3x3 grid game. It probably cuts to the chase on creating a grid based display.

Rob

I followed tutorial but I am getting an error. unexpected symbol near ‘+’  I tried to restart and still get this error.  I entered and verified that everything was exact. 

There were two tutorials, so we have no idea which one you’re using. It would be really helpful if you copy/paste the entire error message from the Corona console log. It would also be helpful if you posted the code around where you’re getting the error and let us know what line number is causing the error in your code.

Rob

It was the first video of the tick tac toe game.  Just pulled it up again here is the log. 

07:33:12.953  

07:33:12.953  Corona Simulator 2018.3326 (Jun 25 2018 12:39:46)

07:33:12.953  

07:33:19.964  

07:33:19.964  Copyright © 2009-2018  C o r o n a   L a b s   I n c .

07:33:19.964  Version: 3.0.0

07:33:19.964  Build: 2018.3326

07:33:19.964  Platform: iPhone / x64 / 6.1 / Quadro FX 1700/PCIe/SSE2 / 3.3.0 / 2018.3326 / en_US | US | en_US | en

07:33:19.964  Loading project from:   C:\Users\BoiseTV\Documents\Corona Projects\tic tac toe

07:33:19.964  Project sandbox folder: C:\Users\BoiseTV\AppData\Local\Corona Labs\Corona Simulator\Sandbox\tic tac toe-46C25ED27892F80D745EBD09C07086B4\Documents

07:33:19.980  ERROR: Syntax error

07:33:19.980  C:\Users\BoiseTV\Documents\Corona Projects\tic tac toe\main.lua:14: unexpected symbol near ‘+’

Here is the code:


– main.lua


– Your code here I copied it exact from the tutorial.  Tried it with the correct spelling of Horizontal but still the same error.

local title= display.newText(“Tick-Tac-Toe”, display.contentCenterX, 25, native.systemFontBold, 20)

local leftVerticalLine = display.newRect( display.contentCenterX -50, display.contentCenterY, 5, 300)

local rightVerticalLine = display.newRect( display.contentCenterX +50, display.contentCenterY, 5, 300)

local topHorzontalLine = display.newRect( display.contentCenterX, display.contentCenterY, - 50, 300,5)

local bottomHorizontalLine = display.newRect( display.contentCenterX, display.contentCenterY, + 50, 300,5)

There shouldn’t be a comma after display.contentCenterY in the lines where it says -50 and +50.

Wow, sorry for that. I missed it. I appreciate your help.

Is there a way to set the reset button for this tutorial on always.  It resets only when someone wins or loses.  Can it show on always.  I can turn off the remove reset button but it still doesn’t show initially. Thanks

Looking at the code, you will see it only creates a widget.newButton() inside the gameOver function. Because the creator for the widget.newButton() is inside the gameOver function, that command is only executed when gameOver is called. 

If you want the button always on in the UI, simply move the button creator command outside of the gameOver function. Perhaps you should move it above the gameOver function but below the resetGame game function. 

Rob

Is this what you are talking about

<resetButton = widget.newButton({

        label = “Reset”,

        x = display.contentCenterX +120,

        y = display.contentHeight -320,

        font = native.systemFontBold,

        fontSize = 20,

        labelColor = { default = { 1,1,1}, over = { 1, 0, 0 } },

        onPress = resetGame

    })

>

I have tried to move it where you said and many other locations both above and below,  the game no longer functions.  I get an error message. 

Found a way to do it.  

Thanks

What error were you getting?

Can you share your code that’s not working? (Please use code formatting)

Thanks

Rob

There are tutorials on the site and you should take a look at the samples which come with the Corona app.

Making a game or an app is a process.  If you are super newbie I think you should start with some display rects, texts and simple fuctions to make a start, then if you are experimenting some troubles, come here with some code, no with the whole idea cause its very difficult to be in your mind to know how exactly you want.

I recommend that you start with the Getting Started guide.

Good luck, and I would like to see you again with some code.

DoDi

I have done your basic balloon bounce exercise.  I was able to build the app.  This really didn’t give me the information I need to progress.  What is the second step in developing skills etc.  I would like to learn, but this one exercise isn’t enough.  Where do I go from here, with the app I described in mind. 

There are a couple of different things you’re asking here. Perhaps focusing on part of the app that you’re struggling with and narrowing the focus of what you need help with like selecting 5 items from a list of 15. Or drawing a 5x5 grid on the screen. Once you solve one part of the problem, then asking for the next part will help narrow down the scope. It will make it easier on the community to respond to you.

Now let me jump into the 5x5 grid. There are a couple of tutorials you might be able to draw some inspiration from:

https://coronalabs.com/blog/2014/08/12/tutorial-building-a-level-selection-scene/

That tutorial is probably a lot of overkill for what you’re trying to do, but it does create a 5xN grid of numbers on the screen. You can cut through a lot of the fluff to get to just what’s needed to create a grid.

https://www.youtube.com/watch?v=_9CK88YR7SQ

This is a video tutorial on building the game of Tic-Tac-Toe, which if course is a 3x3 grid game. It probably cuts to the chase on creating a grid based display.

Rob

I followed tutorial but I am getting an error. unexpected symbol near ‘+’  I tried to restart and still get this error.  I entered and verified that everything was exact.