xyz i appreciate you giving me your attention and time for helping. The code is what it is, its not a game, its not an art piece, its my way to learn how to do things.
When it comes to sequence of events, i would understand that before i show an object in the world, i would set its location, then add object to the world, this makes sense,
But apparently godot is ass backwards where you have to add object to world then set its position.
Either way it works, changing the 🇦
snap_block(result,newWall)
$PreviewBlock.add_child(newWall)
to
$PreviewBlock.add_child(newWall)
snap_block(result,newWall)
also fyi, if i add the block to world node not player node then the first code works too. So idk..
And please explain what you meant with:
For example, this needlessly appears twice in a relatively short function:
var rid_wall = get_rid_from_node(newWall)
var result = get_ray_results(rid_wall)
These are different functions that return different values.
Given that godot is ass backwards and wont show me values when i put line breaks and try to debug what kind of value i get from methods/properties, i have to define vars pretty much each line to see what kind of value it is.
thanks~!