Object position commands don't work anymore [SOLVED]

Started by Matti, Mon 23/03/2009 12:40:29

Previous topic - Next topic

Matti

For some reason I can't tell the game where to place the objects anymore. They remain at their starting coordinates and object.x and object.y won't do anything. This suddenly happened a few days ago and I'm clueless.

Any ideas what the reason could be?

RickJ

My first guess would be that object.x/y are being over written.   Comment out everything in your room script and then add some test code to move the object.  I would also review the script header file and comment out recent additions.

Does this only happen in one room or all rooms?  What changed when this started to happen?

Matti

Right after posting I realized what the problem is.  ::)

For one room in my game I used the parallax effect of Ali's module. I didn't realize that the properties are set for all objects in all rooms of the game. I looked up the module thread and read that I have to use ParallaxOn() and ParallaxOff() for enabling and disabling the effect.

Thanks anyway, Rick.

SMF spam blocked by CleanTalk