Hello, i making 2D prototype.
My Pawn use “character movement component”.
I need move my background (Actor with tilemap) down, after Pawn reach middle of the scene with jump.
I made branch with task and i know how get current velocity of pawn throw “character movement component”, but how to add this move to my background? Set velocity of of my background in Z axis (dont have “character movement component” and i really no need to add this).
All i need is to know how much would be "Actor background WorldLocationOffset (X,Y,Z) " in Z axis, for any amount of Player Pawn velocity.
The main idea and my problem was that a physical object has gravity, while another object on the scene does not. Therefore, at the same speed, they moved at different speeds. It took a little time to understand this :0) Another task is to bind the speed number to the Z coordinate. All that was required was to assign a variable to the character’s speed, and then divide it by a certain value, sufficient for the speeds of the objects to be equal, just picked it up by brute force.
As usual, I found the full answer in the Unity community.
Thanks for the help!