-- basic first person shooter
function setup()
x = 0
y = 0
menu = button(draw:startButton draw:optionMenu)
menu
game = game = drawWorld(2000, 2000, 2000, 2000) -- makes world 2000 x 2000 x 2000 x 2000 in size
end
function draw()
tint(0, 255, 35, 255)draw:game (line 8)
drawFowardButton(bottomLeft)
drawBackwardButton(bottomLeftUnderFowardButton)
end
function Game()
display menu()
if startButton = pressed then startGame
else display menu
end
then “display” isnt a proper command (unless its one of the undocumented entries, and you need to have the functions made before you can call them, example:
function setup()
testFunction()
end
function testFunction()
print('The Test Works')
end
THe function being called can be anywhere, it just needs to exist. I would be glad to help you on a PM chat if you need help with a game!
@Noobatcoding take a look at the wiki link above and go to the tutorials section. Ignatz’s tutorials are there along with quite a few other great tutorials for beginners.
Really? Once I used capital letters ONLY once and they were like nope, uppercase letters are forbidden (or at least thats the impression I got.) so now people are accepting the capitals? This forum is kind of unfair…
@TheRogueBatcher, DONT YOU THINK THAT IF EVERYONE TYPED LIKE THIS TO TRY AND GARNER MORE ATTENTION IT WOULD BE ANNOYING? This is why you were asked (not forced, not yelled at, asked) to refrain from using capitals.
@TheRogueBatcher - there are several moderators, and it is an individual decision what changes to make to posts or what suggestions to make. We are a small forum, and we don’t have meetings to decide exact rules.
So you haven’t been singled out. Please stop complaining about capital letters and get back to Codea.
I wasn’t complaining. I was stating the factual. My point is that we should all grow some nostrils and ears and then go on top of a skyscraper, jump off hit the ground and pass THROUGH it. Then we go THROUGH the centre of the earth and play badminton with the mole men . Yes… That will solve all of our problems… :-bd