Skip to content

u/Knuckle_Rick

In this archive from Nov 2021 to Sep 2024

19
posts
53
comments
16
media
1.1k
score

When running the game, try going to the remote tab. The names of your nodes might be different from what you might expect. I suggest, rather than checking whether the name is exactly wallnode, try checking if the node name contains wallnode.

Or, even better, set you wallnodes into a particular layer so that only those will be detected by the area2d.

2 points

You can use both languages within the same project. For example, if you want to do something that requires a lot of heavy computation, you can use C# for that, while the rest is GDScript.

But I definitely recommend learning GDScript because it has the most support compared to C# (so I've heard; I don't use C#).

9 points

This is the part I'm referring to: (!IsCharacterAttacking() && nextState != currentState)

After finished_attacking() is called, IsCharacterAttacking() will return false, right? So let's simplify, the conditional statement basically looks like this: true && nextState != currentState

But, then you started attacking, nextState was set to the attacking state, so it became the currentState in the next frame. Making the statement look like: true && false

Which is basically false, so the entire switch stament you've set up isn't getting called. I think.

This is just what I think is happening, but I can't be sure. If this is not what's happening, then idk. Hope you solve it!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.