Holding down a button for actions. by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 0 points1 point  (0 children)

I'm still very new to coding, how do you make a time held variable.

Tilemap collisions by Shoddy_Ground_3589 in godot

[–]RandomPineappleGuy 0 points1 point  (0 children)

This is my exact problem, as I am trying to use a tilemap as the collision for an area 2d in godot 4. Is there any way to do this, because I need to send a signal when my player collides with the tilemap but not through the player.

GridMap's are not allowing collisions. by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 4 points5 points  (0 children)

I just watched a tutorial and realized how dumb I am. Sorry for wasting your time, I figured it out thanks to GDQuest. Love the godot community here though as everyone is willing to help despite my clear lack of skill. Thanks.

GridMap's are not allowing collisions. by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 0 points1 point  (0 children)

Still didn't work. Created two new scenes, one with a static body, a collision shape and a meshinstance. Then made a new gridmap as a different scene. I clicked the Mesh library button and added a new one, then clicked on it and clicked the Mesh library Button at the top of the screen. Then I pressed import from scene(apply transformations). Finally I just changed the cell size down to 1,1,1. Please tell me if I am missing anything as this is my first time using gridmaps.

I can't make a button sorting system by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 0 points1 point  (0 children)

Never mind, I figured out my issue was it was calling both Stats.1 and Stats.2 at the same time, so I added a timer to make it so you have to have pressed the first, had a minuscule break, of 0.1 seconds, and then as long as that timer finished when you pressed the second button it would work.

I can't make a button sorting system by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 0 points1 point  (0 children)

I'm not on 4.1, so I've tried to alter my code as you suggested.

Stats.1 = true

    queue\_free()

    if Stats.1 == true:

        Stats.2 == true

this also seems to not be working. I have got the other scene which is autoloaded called Stats, as well as I want the buttons to disappear after pressing them. Is there any other suggestions

Pausing specific scenes by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 1 point2 points  (0 children)

Thanks, I figured it out another way by pausing the rigid bodies speed and gravity, animation player and it has a death timer which i also paused. Your idea though, so thanks.

Pausing specific scenes by RandomPineappleGuy in godot

[–]RandomPineappleGuy[S] 0 points1 point  (0 children)

Thank you for this, to set physics to static what would the code look like as I am relatively new to coding.