hi, so i'm working on this seal game thing; it's like a burrito bison type game, where you launch the seal and get stuff so you can upgrade it and some other animals and stuff
i just added this launch function which is supposed to stop the seal from moving and allow you to charge power to launch it, and it seemed pretty ok, but when i ran the program, literally nothing even happened
can anyone maybe look through everything and help me figure out why this is happening? i'm drawing a blank, and i really appreciate if i could have some support or whatever
also i better not see anyone saying "rename your variables they're stupid" it's my flipping game i get to type whatever the heck i want
so yeah, thanks in advance if anyone helps, or whatever ﾟ‿ ﾟ
The function time() calculates time based on the number of times update() has been called by the engine. Your repeat loop is infinite due to the return value of time() never changing. As a result, your game never reaches draw() and thus never shows what it's doing.
I'm not sure how update() could continue running while launch() is. launch() is called by update(), so update() won't finish until after launch() does. If you want both to run at the same time, launch() needs to be run as a coroutine so that update() can finish.
Just check the information posted on this forum http://captchaforum.com/ or post in a new thread all the details of your issue. If you find a problem with the captcha, you can send a message to this forum at any time and there will try to solve the problem not only for you, but for all people in general!
I am not going to tell you to rename your variables, however if you plan to use Pico-8 as your editor, then you are limited to 32-characters across.
One practice I have is limiting my variable names to 3-letters, including arrays, and limiting my functions to 4-letters.
You don't have to do this of course, but it may help in the long run.
[Please log in to post a comment]