Make a movable/pushable object?

Fill this out this info to make it easier for the community to help you! If you don’t fill out this information, your post may be deleted or removed.

What Wick Editor Version are you using?
Ex. 1.19.3

Describe the Problem
I want it so that when the player bumps into the object is moves in the direction the player is moving in

What have you tried so far?
Well I wrote this (explanation below)
if (this.hits(player)) { this.y -= 5; }
Now the issue is that it only moves on the y axis. I want it so that if it gets hit on any axis from any direction it moves to that direction.

Do you have a Wick Editor File that we can see? Optional*
Logger2-24-2021_17-14-16.wick (519.0 KB)
Refer to frame 76 for what I want to move. The object that I want to move is blue and should be right in front of the player. I forgot to name it in this version

Logger2-24-2021_21-30-02.wick (519.1 KB)

Now it works, but sometimes the box sticks to the player, hope it helps!

1 Like

Thank you for the help!

1 Like

I was working on this as well…
Logger2-24-2021_20-55-12.wick (519.2 KB)

Thank you for the help @Jovanny and @Steven

2 Likes