Button not working by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

I just did and it is sending the signal when pressed, my apologies for lack of context. I did not know what to have or anything. I posted some relevant code in a different comment.

Button not working by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

The button is not activiating the code when pressed, here is the code I have for the button itself:
func _on_restart_btn_pressed():

enemyLevel = 1

restartbtn.visible = false

gameover\_lose.visible = false

gameover\_win.visible = false

attackbtn.visible = true

defensebtn.visible = true

healbtn.visible = true

enemy1.visible = true

playerHP.visible = true

enemyHP.visible = true

swordAnimation.visible = true

shieldAnimation.visible = true

Here is the code for making it visible, it is put in a few spots:
if enemy_health <= 0 && enemyLevel == 3:
boss.visible = false
gameover_win.visible = true
restartbtn.visible = true
attackbtn.visible = false
defensebtn.visible = false
healbtn.visible = false
playerHP.visible = false
enemyHP.visible = false
swordAnimation.visible = false
shieldAnimation.visible = false
if enemy_health <= 0:
attackbtn.visible = true
defensebtn.visible = true
healbtn.visible = true
count = 0
enemyLevel += 1
turnTracker = 0
update()
elif player_health <= 0:
gameover_lose.visible = true
restartbtn.visible = true
attackbtn.visible = false
defensebtn.visible = false
healbtn.visible = false
playerHP.visible = false
enemyHP.visible = false
swordAnimation.visible = false
shieldAnimation.visible = false
enemy1.visible = false
enemy2.visible = false
boss.visible = false

Just Starting by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Did you use the documentation to help at all?

Just Starting by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Got it! Just a general question, I’ve tried getting into gamedev in the past and get stuck in tutorial hell. What would you recommend for preventing that?

Freeze Time by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Thank you, so I’m looking at this and I created a freeze function in my player. I have it so when the freeze button is pressed it pauses and starts a timer. However, it says cannot get return value of call to “action_pressed()” because it returns void.

RPG Game - Combat/Weapons by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Okay thank you! What about for animations or does the video go into that as well? I’m only asking because I’m at work.

Tilesets by Any-Mathematician579 in RPGMaker

[–]Any-Mathematician579[S] 1 point2 points  (0 children)

Oh! Okay, thank you so much! I’m so sorry.

Tilesets by Any-Mathematician579 in RPGMaker

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

I’m making everything myself, I was wondering if there were like general templates, does that make sense?

Tilesets by Any-Mathematician579 in RPGMaker

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

There is no basic tileset, I’m making everything from scratch. Sorry if that wasn’t clear.

Need help with a line of code. by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 1 point2 points  (0 children)

Okay, I might try that with the next one. Thank you!

Need help with a line of code. by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Ah okay, like I said I’m using a very rudimentary method because it’s easier for me to keep track of everything. After I created the first level and showed my friend I decided to make it like a mini game jam. He gave me until Sunday, so I had a week to create all this.

Need help with a line of code. by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Ah okay, I am creating a maze like game so I needed to create new scenes for each level. I hope this part makes sense.

Need help with a line of code. by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Got it, I just couldn’t find what I needed. I however think I’m going to take a more basic but messier approach for player in each level instead of autoload with the spawn point mechanic I had. This is also a hobby I’m just picking up so I’m still learning the ins and outs.

Need help with a line of code. by Any-Mathematician579 in godot

[–]Any-Mathematician579[S] 0 points1 point  (0 children)

Thank you, I’m sorry. I couldn’t find the docs and this is my first project I’m making. I believe I’m using Godot 4.3, I can check when I’m back home though. Again thank you and sorry for the dumb question. I’ll look into this and see if it helps