Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 18/04/2003 00:10:50

Title: Character view won't release
Post by: on Fri 18/04/2003 00:10:50
I have the character use a car and the image changes to him in the car as it drives off. Then it goes to a map, then to wherever the player wants to go. However, the character still looks like a car in the new room and moves around with the car view.

The actions I used go in this order.
Move character towards car.
Car object turns off.
Character view changes.
Character/car moves off screen.
Release view
switch object back on.
change room.

But it won't release the view.
Title: Re:Character view won't release
Post by: scotch on Fri 18/04/2003 12:18:51
could you post the actual script?  I think what you have there should work in theory, it might just be a little error in what you've written or something.

One quick thinkg you could check that could cause the problem is to make sure you are using

SetCharacterView(CHARID, int view);

and not

ChangeCharacterView (CHARID, int newview)

The second one changes the characters main view permanantly so ReleaseCharacterView() just turns it back to the one you changed it to.  SetCV is temporary.