Search found 11 matches

by Paz
Tue Jun 19, 2018 2:05 am
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 10225

Re: Could really use some help in Lua, have hit a wall and can't move forward.

i agree with you, well done, i have rarely agreed with some of these libraries myself, although i am not sure it might have been the case i should've used one of the camera ones as i am sort of rendering everything offscreen at the moment i have no problem with animation in my framework, i simply s...
by Paz
Mon Jun 18, 2018 11:02 pm
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 10225

Re: Could really use some help in Lua, have hit a wall and can't move forward.

Defining the local elapsedTime inside love.update itself is asking for the variable to be reset every frame; move that out of the function. Also, to be more clear, whatever image or even sprite sheet one specific animation might use doesn't necessitate them to have separate x and y positions; logic...
by Paz
Mon Jun 18, 2018 9:07 pm
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 10225

Re: Could really use some help in Lua, have hit a wall and can't move forward.

Wouldn't this be easier if you had a sprite position that you change with the d key and then drew either sprite at that position? That way you only need to check one value and just determine which image you need to draw. I may have misunderstood what you are asking for but that seems like the easie...
by Paz
Mon Jun 18, 2018 8:56 pm
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 10225

Re: Could really use some help in Lua, have hit a wall and can't move forward.

I applaud your effort to attempt to roll your own animation code. It can be a great learning experience. But if you want this to "just work," then I suggest using Anim8 (https://github.com/kikito/anim8) or another of the Love2D helper libraries for animation that the community has written...
by Paz
Mon Jun 18, 2018 6:31 pm
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 10225

Re: Could really use some help in Lua, have hit a wall and can't move forward.

Hard to say without knowing what you actually want this code to do. It looks like you actually meant for line 23 to end with para .x = 0 instead of para[currentFrame].x = 0. Since as soon as the player lifts off of the "d" key, the currentFrame will switch to the image in para that hasn't...
by Paz
Mon Jun 18, 2018 1:52 pm
Forum: Support and Development
Topic: Could really use some help in Lua, have hit a wall and can't move forward.
Replies: 15
Views: 10225

Could really use some help in Lua, have hit a wall and can't move forward.

I'm trying to use Lua in combination with Love2d to animate a sprite. However there is a programming problem that I have run into that I can't figure out. I'm not sure how to recognize multiple specific keys in the table. For example both image 1 and 2 have x values. How would I specify in code &quo...
by Paz
Thu Jun 14, 2018 12:43 am
Forum: Support and Development
Topic: Hello! I could use some help making a basic animation in LOVE.
Replies: 3
Views: 3707

Re: Hello! I could use some help making a basic animation in LOVE.

I can see what's causing you problems. I suggest eliminating 'activeFrame' and stick with 'currentFrame'. Then love.draw only has to contain im = animations[currentFrame] love.graphics.draw(im, love.graphics:getWidth()/2,love.graphics:getHeight()/2, 0, 0.2,0.2 ,im:getWidth()/2,im:getHeight()/2) Thi...
by Paz
Wed Jun 13, 2018 9:27 pm
Forum: Support and Development
Topic: Hello! I could use some help making a basic animation in LOVE.
Replies: 3
Views: 3707

Hello! I could use some help making a basic animation in LOVE.

https://ideone.com/fXJszY Here is a link to a code viewer with my program in it. This program overall is still kinda confusing to me. Specifically the activeFrame and currentFrame variables and the love.update(dt) function. Both of which I got from another source on animation in LOVE. But anyhow I'm...
by Paz
Sun Jun 10, 2018 2:12 am
Forum: Support and Development
Topic: I don't want to give up on game development again so can someone help me please?
Replies: 2
Views: 2139

Re: I don't want to give up on game development again so can someone help me please?

Ok thank you that was really confusing me. Sorry I got extremely frustrated cause I just started getting into it. I'm doing pretty good atm with it.
by Paz
Sat Jun 09, 2018 2:38 pm
Forum: Support and Development
Topic: I don't want to give up on game development again so can someone help me please?
Replies: 2
Views: 2139

I don't want to give up on game development again so can someone help me please?

Just really got into it today after years of thinking about it. But ya I installed LOVE. Then after that I installed ZeroBrane. LOVE is in my C:\ProgramFiles directory and ZeroBrane is in C:\Users\openw\Downloads\Programs\ZeroBrane cause I wanted it separate. When I try to actually execute a program...