Changing map and avatar direction

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

radiateur
Posts: 62
Joined: 15 Aug 2011, 08:14

Changing map and avatar direction

Postby radiateur » 31 Mar 2013, 08:23

Hi there,

I'm currently about to finish my game, and i designed and linked every maps of my world. Almost everything work fine and i'll surely have further questions about openspace details, like this one :

When my avatar enter in a new map, the direction he look at is defined by default as facing north west. But i need to send to my avatar a direction dependent to the tile where he is and where he came from (i mean if he appeared on a nothern tile he should look at south, and if he appeared on a southern tile he should look at north).

I thought i had found a thread asking for the same think but i don't find it again... maybe that this is just a parameter to write on the mapExit tile in the map editor, i don't know, but what is the way to send the avatar the good direction to look at ?
radiateur
Posts: 62
Joined: 15 Aug 2011, 08:14

Re: Changing map and avatar direction

Postby radiateur » 02 Apr 2013, 08:34

someone hulp me?
User avatar
Bax
Site Admin
Posts: 4332
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Changing map and avatar direction

Postby Bax » 02 Apr 2013, 09:05

Check the IOpenSpace.createMyAvatar method documentation: among the parameters you can pass to that method you have the direction that the avatar should face.
Paolo Bax
The SmartFoxServer Team
radiateur
Posts: 62
Joined: 15 Aug 2011, 08:14

Re: Changing map and avatar direction

Postby radiateur » 02 Apr 2013, 19:14

Thanks, i'll check this tomorow.

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 2 guests