Search found 8 matches
- Thu Jun 05, 2014 4:25 am
- Forum: Support and Development
- Topic: how to run function every halfsecond instead of millisecond?
- Replies: 7
- Views: 4030
Re: how to run function every halfsecond instead of millisec
What I’m trying to do is make it to where the player will not move once the game starts until the player uses an arrow key. Once an arrow key is pressed, even if the key is released, I want the player to move in the direction of the key pressed until it collides with something, in which case the pla...
- Thu Jun 05, 2014 3:25 am
- Forum: Support and Development
- Topic: how to run function every halfsecond instead of millisecond?
- Replies: 7
- Views: 4030
Re: how to run function every halfsecond instead of millisec
I'm afraid I couldn't make much sense of that, I'm sorry.
- Thu Jun 05, 2014 1:04 am
- Forum: Support and Development
- Topic: how to run function every halfsecond instead of millisecond?
- Replies: 7
- Views: 4030
how to run function every halfsecond instead of millisecond?
So I'm trying to make the player be affected by gravity until the player collides with something while being able to change the direction of the gravity via the arrow keys. As one last condition, the player should not be able to change the gravity while in mid-air. This is what I have so far: if lov...
- Tue Jun 03, 2014 4:34 pm
- Forum: Support and Development
- Topic: General Noob Collision Coding Help
- Replies: 4
- Views: 2749
Re: General Noob Collision Coding Help
Thank you very much, that was easily understandable and I feel slightly less intelligent for not figuring that out.
Thank you again.
Thank you again.
- Tue Jun 03, 2014 3:37 pm
- Forum: Support and Development
- Topic: General Noob Collision Coding Help
- Replies: 4
- Views: 2749
Re: General Noob Collision Coding Help
I'm very confused, I apologize for the inconvenience. I still can't seem to figure out how to use return values such as true or false when they are given by a function, such as the CheckCollision functions. To rephrase this, how could I tell it to do things if the CheckCollision function returns tru...
- Tue Jun 03, 2014 5:37 am
- Forum: General
- Topic: [SOLVED]Could anyone help me with this syntax error?
- Replies: 3
- Views: 2601
Re: Could anyone help me with this syntax error?
Thank you both, I appreciate the help very much.
- Tue Jun 03, 2014 5:34 am
- Forum: Support and Development
- Topic: General Noob Collision Coding Help
- Replies: 4
- Views: 2749
General Noob Collision Coding Help
To begin, my keyboard is far less than par. The G, H, ', and backspace keys do not work. Now that that's out of the way, onto the issue. My familiarity with Lua, and programming in general, are both still very early in development, though I'm doing the best that I can. I can't seem to figure out how...
- Thu May 29, 2014 5:32 pm
- Forum: General
- Topic: [SOLVED]Could anyone help me with this syntax error?
- Replies: 3
- Views: 2601
[SOLVED]Could anyone help me with this syntax error?
Syntax Error: main.lua:252: end expected (to close function at line 44) near <eof> Traceback [C]: at ox6b1740 [C]: in function require [C]: in function xpcall require "camera" require "player/coin" --require "player/SpriteAnimation" require "Player/player" fu...