Search found 728 matches

by bobbyjones
Tue Aug 27, 2019 11:09 pm
Forum: Support and Development
Topic: Assigning an image to consecutive tables using 'for loop'
Replies: 2
Views: 1858

Re: Assigning an image to consecutive tables using 'for loop'

So your code needs more critiques than what I can provide right now so hopefully, someone else will help with that but the problem is that your colx variable never resets. So every frame you are adding to the colx value. You can reset colx to 0 after your loop to fix the problem.
by bobbyjones
Sat Aug 24, 2019 6:08 pm
Forum: Games and Creations
Topic: cave game - generic terraria clone
Replies: 15
Views: 10681

Re: cave game - generic terraria clone

If I recall correctly tunneling is caused by predicting the location after movement and if there is no collision then you are allowed to move. If the next location is extremely far away you can travel through walls because you are only testing the target location and not everything in-between. Large...
by bobbyjones
Sat Aug 24, 2019 1:29 pm
Forum: Libraries and Tools
Topic: Simple Button Library
Replies: 2
Views: 3057

Re: Simple Button Library

It seems like a nice simple library. The only critique I have is that your library loads itself into the global scope. I am pretty certain that the standard in the Lua community is to have it use a local and return that local variable.
by bobbyjones
Sat Aug 24, 2019 1:11 pm
Forum: Support and Development
Topic: What is Text object?
Replies: 4
Views: 2646

Re: What is Text object?

I believe it is like a sprite batch or mesh of sorts that batch the calls so that all of the text is drawn only once
by bobbyjones
Sat Aug 24, 2019 10:24 am
Forum: Support and Development
Topic: Code review please
Replies: 8
Views: 2272

Re: Code review please

The importance of using only locals is to mainly prevent name conflicts. This can introduce some pretty crazy bugs. For example, if you declare player in two files and each has conflicting data and or operations done to them it would cause the player to act unpredictably. You can't localize player.c...
by bobbyjones
Sat Aug 24, 2019 10:11 am
Forum: Games and Creations
Topic: cave game - generic terraria clone
Replies: 15
Views: 10681

Re: cave game - generic terraria clone

Well, I fell through the floor when switching active windows. I believe it is a derivative of the bullet tunneling problem. It is repeatable if you grab the window and shake it while over a cavity in the ground. If the frame rate drops a sufficient amount you will fall through the ground. You can al...
by bobbyjones
Wed Jun 12, 2019 2:37 pm
Forum: Support and Development
Topic: Detect collisions for STI with bump by layer id
Replies: 1
Views: 1109

Re: Detect collisions for STI with bump by layer id

I haven't used it in a while but I believe the collision object returns the items the took place in the collision. That's how I handled it.
by bobbyjones
Wed Jun 12, 2019 2:34 pm
Forum: Support and Development
Topic: sock.lua, cannot create any server
Replies: 1
Views: 1149

Re: sock.lua, cannot create any server

See my response to your other post. You have to bind to an IP address available on your machine. such as localhost. You can also look at network properties if you are using windows. Use the IP address from the currently operational network connection.
by bobbyjones
Wed Jun 12, 2019 2:23 pm
Forum: Support and Development
Topic: [SOLVED] enet cannot create any server
Replies: 14
Views: 6889

Re: enet cannot create any server

Your ip address and port combo is causing host_create to fail. If you use 127.0.0.1:8888 as the ip port combo it will work
by bobbyjones
Wed May 29, 2019 7:47 am
Forum: Support and Development
Topic: Code improvement (First time Lua-enet)
Replies: 7
Views: 4185

Re: Code improvement (First time Lua-enet)

Do not know if you know this but you can run love in such a way that does not initialize the window for the server.