What Wick Editor Version are you using?
1.19.3
Describe the Problem
What issues are you having in the Wick Editor?
I am trying to get my character to stand on top of a wall. but it keeps falling through the wall.
What have you tried so far?
I’ve watched and downloaded the hit test function tutorial and I can get my chracter rupert to repel off of the left and right side but he goes through the wall on up and down. my code looks like this in the Keydown tab:
if(isKeyDown(‘up’)){
this. y -= 10;
if(this.hitTest(wall)){
this.speed_y+=12;
}
}
if(isKeyDown(‘down’)){
this. y += 10;
if(this.hitTest(wall)){
this.speed_y-=12;
}
}
if(isKeyDown(‘left’)){
this. x -= 10;
if(this.hitTest(wall)){
this.speed_x+=12;
}
}
if(isKeyDown(‘right’)){
this. x += 10;
if(this.hitTest(wall)){
this.speed_x-=12;
}
}
if (key === “up”)
{
this.speed_y -= 10;
}
Do you have a Wick Editor File that we can see? Optional*
I have shared my rupert file so you can see what i mean.
Thanks for the help :)