Problems moving object [SOLVED]

Started by Blade, Thu 13/01/2005 11:36:16

Previous topic - Next topic

Blade

I have an object of a car moving through the screen. I want it to move from the edge to some specific point and then to change the room. The room loads, stays for a while and then changes to the next room without showing the car moving. I tried altering speed and even drew a walkable area, but it still doesn't show. Should I change the car to a character or something else than object?
"Object initially visible" is on.
Studies show that 50% of the people do not know they form half of the society.

Scorpiorus

#1
Yeah, you can not move objects through rooms. There is a variety of workarounds though:

- as you already mentioned, you can use a character instead of the object as characters can change rooms.

- you can have another object in the second room (another car) and move it

- or you can have a single object but move it around one room. You can draw a background twice as wider (room1+room2) and use the SetViewport function to change between two screens.

I'd make it a character -- it's simple - yet rather effective. :)

EDIT: At a secong glance I see you probably move it in only one room. In that case use an object but instead of MoveObject try MoveObjectDirect. It ignores walk-able areas. MoveObject may not work if the car is off the screen edge since we can't draw walkables there. :)

Blade

#2
I didn't make myself entirely clear. I know the objects are reserved for one room and the car is moving through one room only. Still it doesn't appear anywhere in the picture. I'll try character, it shall work.
Studies show that 50% of the people do not know they form half of the society.

Scorpiorus

Hmm, that's rather strange. Well, if it won't work do let us know. And then post the code you use so we can possibly figure out what's wrong.

Blade

I haven't changed your suggestion about the object. I've just changed it to character and it runs smoothly now. Thanks for your attention.
Studies show that 50% of the people do not know they form half of the society.

SMF spam blocked by CleanTalk