this is all i have
keydown
if (key === “right”){
this.x +=10
}
update
if (key === “right”){
this.x +=10
}
what i have
i have so when they collied it gose to the next frame
what i whant
i whant it so that it still stay on the exact same fram but it collieds
it will be nice if someone help me
if(this.hits(object name goes here)){
project.gotoNextFrame()
}
i already know that i need it so that it stops on the exatc same frame
do you want your object to stop (not be able to move even if key is pressed) after it collides with the wall?
yes
i do
thasnk you