Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Matti on Mon 23/03/2009 12:40:29

Title: Object position commands don't work anymore [SOLVED]
Post by: Matti on Mon 23/03/2009 12:40:29
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?
Title: Re: Object position commands don't work anymore
Post by: RickJ on Mon 23/03/2009 12:47:50
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?
Title: Re: Object position commands don't work anymore [SOLVED]
Post by: Matti on Mon 23/03/2009 12:58:13
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.