How can i change velocity.x or velocity.y on orchestrator

Godot 4.3 stable

Hi, for a project I was asked to use godot with orchestrator, the famous visual scripting plugin. I am used to gdscript and from there I can easily change the speed of the characherbody2d on both x-axis and y-axis, but on orchestrator I have not found how to do it.
Would those who are more knowledgeable be able to give me some tips?

I took a peek at the plugin GitHub. I think you want to composed a vector2d and the use property set on the velocity of the character.

Thank you but how can I do it?
For example I am making a small platformer and I would like to separate velocity.y and multiply it with gravity and delta, and velocity.x with the character’s speed
How can I do something like that on orchestrator?

Here is a tutorial project.

Here is the docs

1 Like

Thank you but I had already checked and there is nothing to help me

it helped me.

If i were to write this as code.

Extends CharacterBody2D

func _physics_process(delta):
  # Vector2( 0 , 1 ): is gravity direction
  # delta * 980: pixel gravity constant multiplied by the change in time.  
  self.velocity = self.velocity + ( Vector2( 0 , 1 ) * ( delta * 980 ) )
  self.move_and_slide()

I noticed i could have connected the delta from physics process event. But I hope you can see the picture.

Also if you want to work with a single axis in isolation, you can break a vector like this example from the link.
image
You just have to recompose it back into a vector (make vector from float ) before you set velocity.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.