Jump to content

  • Log In with Google      Sign In   
  • Create Account

We're offering banner ads on our site from just $5!

1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualHodgman

Posted 03 June 2014 - 09:05 PM

EDIT:

nevermind I figured something out for now, delete this thread. If you do have a solution already figured out, post it anyways.

 

OP:

 

Hello,

 

I made an account years and years back (I never remember posting) and only now have I gotten around to needing some help. I am making (for myself) some tutorials on game making, and I am stuck on lua. I know how it's used, I had something working great before, but it was alot of hassle and more complex than it needed to be (variables were defined in both lua and C and every frame lua would pull/set the variables) and got to a point where it didnt work anymore (frame-independance). I have my code here:

http://pastebin.com/GXbKYxAz

What I thought I could do, was have obj_load() ran only once (once every time a player object is created) and then proc() runs the remainder of the time (i'll set up a end() function later). The issue I am having is proc() does not know what p is. Do you know what I might be able to do to have this running correctly? Thanks

 

Nick

: restored from history


#2DrNicholas

Posted 03 June 2014 - 07:10 PM

EDIT:

 

nevermind I figured something out for now, delete this thread. If you do have a solution already figured out, post it anyways.


#1DrNicholas

Posted 03 June 2014 - 06:09 PM

Hello,

 

I made an account years and years back (I never remember posting) and only now have I gotten around to needing some help. I am making (for myself) some tutorials on game making, and I am stuck on lua. I know how it's used, I had something working great before, but it was alot of hassle and more complex than it needed to be (variables were defined in both lua and C and every frame lua would pull/set the variables) and got to a point where it didnt work anymore (frame-independance). I have my code here:

http://pastebin.com/GXbKYxAz

What I thought I could do, was have obj_load() ran only once (once every time a player object is created) and then proc() runs the remainder of the time (i'll set up a end() function later). The issue I am having is proc() does not know what p is. Do you know what I might be able to do to have this running correctly? Thanks

 

Nick


PARTNERS