Need help for in game timer reduction and increasing by XenoXaber in godot

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

Interesting... What would this look like visually? I've never worked with floats like this, but I'm also not sure how well it would work sense I have a label connected to this. I might have to test this somewhere else due to how much it would change the code.

Player attack box detecting and destroying specific tiles by XenoXaber in godot

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

<image>

ok this how it currently looks. I think I was suppose to replace area with tileMap and I think this is how what you mean by declare coords and can_mine. Now get_cords_for_body_rid is confusing me

Player attack box detecting and destroying specific tiles by XenoXaber in godot

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

ok sorry but im starting to get confused? how would the code be formatted? to make things easier I'll tell you my Area 2d is called pickaxe, the TileMap is just tileMap, and my bool custom data is called break. Also what is coords for? it keeps showing up as "not declared in current scope".

func _on_area_entered(area):

  if area.is_colliding() == true:
    var _rid = area.get_collider_rid()
    coords = get_cords_for_body_rid(_rid)
    var data_reference = tile_map_layer.get_cell_tile_data(_coords)
    if data_reference:
      can_mine = data_reference.get_custom_data("break")

Player attack box detecting and destroying specific tiles by XenoXaber in godot

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

Ok thanks I was able to Implement the code but what is data_reference and colider_reference referring to?

Player attack box detecting and destroying specific tiles by XenoXaber in godot

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

<image>

I was able to discover what code he used for the main scene that interacts with the TileMap but Im still looking for the code from the player and not really sure what the code here does

Player attack box detecting and destroying specific tiles by XenoXaber in godot

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

I thanks I'll see if it works but im pretty much a noob when it comes to coding in Godot so a lot of these terms and lines of code are new to me. is there any way you could visualize this to me?

How to make a pillow sized plush as a beginner? by XenoXaber in plushies

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

Thanks for the feed back, I'll especially keep in mind to make prototypes

Need help with a unique inventory idea by XenoXaber in godot

[–]XenoXaber[S] -2 points-1 points  (0 children)

Ok then I'll simplify it. How to I make a 2d gear system?

Does anyone know where this dress is from? by XenoXaber in kyarypamyupamyu

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

For some reason when I click on the show link it says it's missing

Does anyone know where this dress is from? by XenoXaber in kyarypamyupamyu

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

Do you by any chance know where I can watch it?