Undefined Variables in Player/Player.gd #1
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
squatnet/Godot-NodeJS-Websockets#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi @Squatnet
I love your project, I'm using it as an inspiration to work on a pet project of mine. I wanted to ask a few things from you regarding your code.
The variables
modulateandrotationcome out as a undefined on the Godot Editor. May I know what these are exactly. I checked the Project Settings on Godot and did not find any singletons declared so what exactly are these.Thanks a ton in advance. Awesome project!
Hi there, modulate and rotation are both built in to certain nodes in godot
editor. I'm unsure as to why they are undefined, as rotation and modulate
properties exist in all 2d nodes, Are you using 3d nodes or UI nodes?
Modulate comes from base class CanvasItem
https://docs.godotengine.org/en/stable/classes/class_canvasitem.html#class-canvasitem-property-modulate
and Rotation comes from base class Node2D
https://docs.godotengine.org/en/stable/classes/class_node2d.html#class-node2d-property-rotation
modulate is simply the quick and dirty way I was setting the color for
players
rotation is simply how I was setting which way the player sprite was facing.
Hope this helps.
Hey! Thanks a ton for the quick reply!
Yes I'm using Spatial nodes for my project. Okay I got what modulate and rotation are now. Will search for equivalent properties in the spatial node for these and list them here once I find 'em post which I will close this issue 👍🏼
Hi, I'm pretty sure Spatial node have no equivilant property for modulate, Instead you would change the properties of materials applied to child meshes (hope that makes sense)
rotation is done as part of Transform in 3d nodes as 3d uses transform to do everything that postion and rotation accomplish in 2d,
https://docs.godotengine.org/en/stable/classes/class_transform.html#class-transform
hope this helps!
Labelled as wontfix, as the differences between 2d and 3d nodes are outside of this projects scope
@Zanark did you get this sorted? can i go ahead and close this issue?
Yes, thanks a ton for the help 😁
You are most welcome!