i got nothing done today because i got caught up on this: (im using godot)

func _on_area_2d_area_entered(_area):
if Input.is_action_pressed("space"):
print(counter)

the "if input action pressed" simply isn't working, anyone know why?

TheCurryGod44 days ago

@PupperLynn So question one: You should create an @onready var for your timer like @onready var timer = $Timer. Question 2: oce again you probably wanna make an @onready var for your area aswell. It gets annoying but that's what works for me. Other than that I can't think of any other reasons rather than you messed something up in ordering or Node management or something.

PupperLynn44 days ago

@TheCurryGod apparently "has overlapping areas" isn't a thing cause it says invaild get index "has overlapping areas"

PupperLynn44 days ago

@TheCurryGod one more question since you use Godot, is there a way to start a timer mid-game? Or can you only auto start the timer

TheCurryGod44 days ago

@PupperLynn No worries! Sorry I couldn't reply before I was asleep.

PupperLynn44 days ago

@TheCurryGod after a short tutorial I got it! thank you so much

PupperLynn44 days ago

@TheCurryGod yeah im pretty confused sorry

TheCurryGod45 days ago

So The area checks the EXACT frame it collides with something. After it collides with it, it doesn't check for the same collision. Let me explain: Let's say your rubbing two squares together and your checking when they collide. you wouldn't check every second it's colliding you're just checking the moment it collides. Instead you should do in your physics process (or just process): if (Area).has_overlapping_areas: then do the input. if you're confused lemme know

More submissions by PupperLynn for Daily Fishposting

i got the assets done yesterday and today I did the eight-way movement, NPC pathfinding + press space to chomp
also the code needed for the main mechanic is hard so I took a break

(i didn’t check my email yesterday lol so im a little late)
my idea is a super cute fish that attracts people but it can morph into this super big shark and eat people but you have to charm them first or else you’re caught
day 2- art + figure out timers plus variables

Daily Fishposting

Share your progress on your FishFest game daily

daily from 2024-04-01 to 2024-04-09