[SOLVED] Make a custom behavior that changes image offset

What is the expected result

When adding this behavior to an object, this happens forever:

What is the actual result

Nothing happens, literally. There’s really not much else to say, I add the behavior to the object and no matter what I try, nothing happens

Related screenshots




There is a parallax for tiled sprites extension, maybe you can edit that extension to fit your needs or take some parts from it as it does basically the same thing except it shifts the image with the camera.

1 Like

Thank you! This actually even helped me to fix the original problem
Here’s the solution for whoever wants it:
image
You should use Object.Behavior::PropertyNameHere() instead of GetArgumentAsNumber(Argument)

Awesome! Yeah, definitely use Object.Behavior::PropertyOfBehavior() if you want to use the values inside the behavior properties.

1 Like