Search found 9 matches

by ward614
Tue Nov 14, 2023 12:44 am
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 4019

Re: Adjusting hitboxes using bounce

Thank you so much for showing me this! I knew something was wrong here, but never tried to adjust both the goal values and the actualX/Y values at the same time, so I didn't see the effect! I really appreciate your help!
by ward614
Sun Nov 12, 2023 3:01 pm
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 4019

Re: Adjusting hitboxes using bounce

Here you go! It is currently set with player.x and player.y showing +1 and the width and height at -2 each. You can see that the right and bottom side of the sprite are adjusted by the change to width and height, but the player.x and player.y changes have no effect even if you crank them up to +50. ...
by ward614
Sun Nov 12, 2023 1:30 pm
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 4019

Re: Adjusting hitboxes using bounce

Thank you for responding! As far as I can tell, there are no other calls to bump affecting the player other than these two, and if I comment out the world:move statement the hitbox matches what is in the world:add statement. I have included both of the .lua files containing these statements below (i...
by ward614
Sun Nov 12, 2023 1:37 am
Forum: Support and Development
Topic: Adjusting hitboxes using bounce
Replies: 6
Views: 4019

Adjusting hitboxes using bounce

Hello! I am currently working on a game using bounce for collision detection and resolution. I am hoping to make the hitbox for the player a bit smaller than the actual sprite, however it appears that the hitbox is being reset when I call world:move. How can I keep the adjusted hitbox I created in w...
by ward614
Sun Nov 12, 2023 1:32 am
Forum: Support and Development
Topic: How to reference Bump's "bounce variable
Replies: 5
Views: 1818

Re: How to reference Bump's "bounce variable

Okay, so it turns out that having a collision filter is super necessary for this and I was trying to directly pass "bounce". After adding one in, I was able to get it working! Thank you!
by ward614
Fri Nov 03, 2023 10:37 pm
Forum: Support and Development
Topic: How to reference Bump's "bounce variable
Replies: 5
Views: 1818

Re: How to reference Bump's "bounce variable

Thank you! I knew it had to be something silly! That being said, I am still getting no return from the col.bounce. Even when the sprite on screen has clearly collided none of my direction change if statements are activating, nor does a statement asking if col.bounce returns true. Any insight you hav...
by ward614
Fri Nov 03, 2023 3:08 am
Forum: Support and Development
Topic: How to reference Bump's "bounce variable
Replies: 5
Views: 1818

How to reference Bump's "bounce variable

Hello all, I am working on collision detection using bump for the first time, and I have run into a situation where a need to access the cols.bounce.x and cols.bounce.y variables (looking to continue the bouncing motion by changing the movement direction), however I am getting an error that it is at...
by ward614
Sat Feb 22, 2020 7:46 pm
Forum: Support and Development
Topic: Variable becomes nil after passing it to another function
Replies: 2
Views: 4132

Re: Variable becomes nil after passing it to another function

Thank you so much! I know it was something really simple I was missing, but I just couldn't see it!
by ward614
Sat Feb 22, 2020 7:20 pm
Forum: Support and Development
Topic: Variable becomes nil after passing it to another function
Replies: 2
Views: 4132

Variable becomes nil after passing it to another function

Hello! I am new to LOVE and Lua, and am in the process of trying to make a basic pong game to learn more and improve my skills. I have found myself stuck with a recent issue, however. My file is attached and you can see the whole thing at https://pastebin.com/APd0FuVz. The specific functions are bel...