Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: YotamElal on Tue 22/02/2005 12:59:22

Title: player view problems [SOLVED]
Post by: YotamElal on Tue 22/02/2005 12:59:22
2 problems

1. the player view isn't changing when on walkable.


2.when I change the players view,
object 0 which is visible on the screen changes
to the first frame of the players view
(as well as the player view changing).

?
Title: Re: player view problems
Post by: Radiant on Tue 22/02/2005 14:05:21
Maybe you could show us some of the code you're using? That'd help. There's probably a small typo in there.
Title: Re: player view problems
Post by: YotamElal on Tue 22/02/2005 14:23:27
mmmm..

1. interaction with object
SetCharacterView(EGO, 10);
//I pickup a hat now i am walking around with a hat on my head.

It changes the players view correctly but allso changes the image of object 0!
: (

2. walkable are doesn't change player view.
this isn't code.
there is a box that sais. change player view when on this area. I put in a view the box doesn't work?
...
Title: Re: player view problems
Post by: Ashen on Tue 22/02/2005 14:35:21
For non-changing view:
SetCharacterView locks the view, so it can only be changed by another script command, and not the 'change player view when on this area' box. (This is explained better in the SetCharacterView entry in the manual.) Try using ChangeCharacterView (EGO, 10) instead. Who knows, that might even fix the other problem. I doubt it, but you never know.
Title: 1 out of 2 problems solved
Post by: YotamElal on Tue 22/02/2005 14:45:56
1 problem solved
now i'm using changecharacterview and the walkable area influences the character. : )

2 unsolved
object 0's image changes to the first frame of the character view?
Title: Re: player view problems
Post by: Pumaman on Tue 22/02/2005 22:37:08
Are you sure you don't have any script or interactions at all in the room that would change object 0's image or view?
Title: SOLVED
Post by: YotamElal on Wed 23/02/2005 05:01:03
I found a changeviewnumber instead of change variablenumber....
Fixed