Search found 9 matches

by SpeedySloth
Wed Aug 08, 2018 11:54 am
Forum: Support and Development
Topic: Keyboard handling not working
Replies: 5
Views: 2695

Re: Keyboard handling not working

On a secondary note, the case in Sprites/Entities/player.lua is wrong for the require of Models/input. The 'i' of 'input' is in upper case. Yeah, it was that. I guess because I corrected a typo in that line already (There must've been 2), I didn't think myself stupid enough to have made another. So...
by SpeedySloth
Tue Aug 07, 2018 6:00 pm
Forum: Support and Development
Topic: Keyboard handling not working
Replies: 5
Views: 2695

Re: Keyboard handling not working

Thanks for your response! I did consider a similar approach to what you posted, but I think I'll stick to what I've currently got, unless I spend ages on it. but yes, do post your code since from what i've read, you most certainly don't erase the contents of the table... unless you define it in love...
by SpeedySloth
Tue Aug 07, 2018 12:01 pm
Forum: Support and Development
Topic: Keyboard handling not working
Replies: 5
Views: 2695

Keyboard handling not working

So I've spent the last few hours trying to get some sort of keyboard handling working, and I can't seem to find out why it's not. I didn't really want to post here, as I have another idea that I'm pretty sure will work, but I quite like the system I'm currently using, and would like to use it. Basic...
by SpeedySloth
Fri Jul 20, 2018 6:44 pm
Forum: Support and Development
Topic: Custom animation system not working, no reason why
Replies: 10
Views: 5658

Re: Custom animation system not working, no reason why

There must be some communication problem. What I'm asking is, what are you changing in order to get the result you expect (but doesn't work)? An example of an answer to that question would be something like along these lines: I'm editing gamestates.lua, and in the function gamestate.load I'm changi...
by SpeedySloth
Fri Jul 20, 2018 5:21 pm
Forum: Support and Development
Topic: Custom animation system not working, no reason why
Replies: 10
Views: 5658

Re: Custom animation system not working, no reason why

Sorry to insist but this is still not specific enough. For me to see the same problem you see, what line(s) should I change in what file(s)? In the previous case, based on your problem statement, I did a text search and located a line commented out that looked like the one you posted, and deduced t...
by SpeedySloth
Fri Jul 20, 2018 5:06 pm
Forum: Support and Development
Topic: Custom animation system not working, no reason why
Replies: 10
Views: 5658

Re: Custom animation system not working, no reason why

Can you be more specific? What do you expect where, and what do you get instead? Basically, even though I'm loading 2 images , only the last one that was loaded is being used, even when I specify the other to be used. It's like the animations, only the last one to be initialised is being used. I'm ...
by SpeedySloth
Fri Jul 20, 2018 4:42 pm
Forum: Support and Development
Topic: Custom animation system not working, no reason why
Replies: 10
Views: 5658

Re: Custom animation system not working, no reason why

Thanks for your reply! Sorry for taking so long to respond. I've looked through the code and can't see any rogue references, so I don't thing it's that. Thanks for sharing the code. Yes, it's that. Look at this code: animation.properties = { atlas, speed, framecount, framewidth, frameheight, fields...
by SpeedySloth
Fri Jul 20, 2018 12:04 pm
Forum: Support and Development
Topic: Custom animation system not working, no reason why
Replies: 10
Views: 5658

Re: Custom animation system not working, no reason why

Hello, welcome to the forums. Without any code to examine, all we can do is guess. My guess here is that you may be altering table contents through references. Consider this: $ lua Lua 5.1.5 Copyright (C) 1994-2012 Lua.org, PUC-Rio > a = {x=1} > b = a > b.x = 2 > print(a.x) 2 Tables are mutable obj...
by SpeedySloth
Thu Jul 19, 2018 8:03 pm
Forum: Support and Development
Topic: Custom animation system not working, no reason why
Replies: 10
Views: 5658

Custom animation system not working, no reason why

So I'm trying to add animations to my project, and recently I've noticed a number of issues that seem to make no sense, however I'm only going to mention one here, because this one in particular has literally (as far as I know) no reason to occur. Basically, when I assign an animation to a variable,...