Search found 8 matches

by xxcjn420xx
Thu Jun 05, 2014 4:25 am
Forum: Support and Development
Topic: how to run function every halfsecond instead of millisecond?
Replies: 7
Views: 3949

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...
by xxcjn420xx
Thu Jun 05, 2014 3:25 am
Forum: Support and Development
Topic: how to run function every halfsecond instead of millisecond?
Replies: 7
Views: 3949

Re: how to run function every halfsecond instead of millisec

I'm afraid I couldn't make much sense of that, I'm sorry. :(
by xxcjn420xx
Thu Jun 05, 2014 1:04 am
Forum: Support and Development
Topic: how to run function every halfsecond instead of millisecond?
Replies: 7
Views: 3949

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...
by xxcjn420xx
Tue Jun 03, 2014 4:34 pm
Forum: Support and Development
Topic: General Noob Collision Coding Help
Replies: 4
Views: 2691

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. :)
by xxcjn420xx
Tue Jun 03, 2014 3:37 pm
Forum: Support and Development
Topic: General Noob Collision Coding Help
Replies: 4
Views: 2691

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...
by xxcjn420xx
Tue Jun 03, 2014 5:37 am
Forum: General
Topic: [SOLVED]Could anyone help me with this syntax error?
Replies: 3
Views: 2562

Re: Could anyone help me with this syntax error?

Thank you both, I appreciate the help very much. :ultrahappy:
by xxcjn420xx
Tue Jun 03, 2014 5:34 am
Forum: Support and Development
Topic: General Noob Collision Coding Help
Replies: 4
Views: 2691

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...
by xxcjn420xx
Thu May 29, 2014 5:32 pm
Forum: General
Topic: [SOLVED]Could anyone help me with this syntax error?
Replies: 3
Views: 2562

[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...