qfacil

I'm making a side scrolling game, and i want to make a box wich the character can push, but the box go back to her place. I want that the character push the box and the box stay on the place where the character put it. But the box go back to her place! This is the script that i used to move the box due to the cenery:
when green flag clicked
go to x: (80) y: (13)
show
forever
set x to (scrollx)
if <touching [player] ?> then
if <key [space] pressed?> then
wait until <not <key [space] pressed?>>

end

end

end

qfacil

And here's the script that i use to make the box follow the player:
when green flag clicked
forever
if <touching [player] ?> then
if <key [space] pressed?> then
go to [player]

end

end
end

But when i drag the box, the box returns to it's initial place! How to fix this?

Skill_Games

It's probably because you are setting the x position to scroll x. Even if you move the box for a short period of time, it will revert back to its original position.