About Store Forum Documentation Contact



Post Reply 
Problem with Players and Tree's
Author Message
FireMan Offline
Member

Post: #1
Problem with Players and Tree's
I show 2 screen's.Tree's are not show leaf from afar.
I'm Players[0], Players[1] have actionmoveto(waypoint). If i does not move, player [1] runs on the waypoint. When a player moves, the other player does the same. How to make that player 1 off control? I use OBJ_PLAYER can say me how to do OBJ_PLAYER a player and as OBJ_CHAR character in the game. I tried to OBJ_CHAR and OBJ_PLAYER but I had an error when compiling.

Screens:

If i don't move:
http://img203.imageshack.us/img203/7595/55763409.jpg

If i move:
http://img203.imageshack.us/img203/2968/24970037.jpg

Forum reklamowe: http://ad-forum.pl
01-29-2010 07:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
menajev Offline
Member

Post: #2
RE: Problem with Players and Tree's
I'm not sure, but aren't there in Chr::update() some code like wantsToMove=Kb.bp(KB_W)?
01-29-2010 08:02 PM
Find all posts by this user Quote this message in a reply
FireMan Offline
Member

Post: #3
RE: Problem with Players and Tree's
My update is same as that in Camera modes.cpp

Forum reklamowe: http://ad-forum.pl
01-29-2010 08:28 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Esenthel Online
Administrator

Post: #4
RE: Problem with Players and Tree's
for the leafs-try to adjust your alpha map, and alpha parameter in material properties

and before importing textures to leafs material, disable texture compression (button "compress" in material editor window)


for players:

both players use the same class, so they use the same methods, and both react to what you order them to do in those methods,

you can either switch one player to a different class, or just make some if's in the methods, so that only one will react to keyboard movement.
01-29-2010 09:06 PM
Find all posts by this user Quote this message in a reply
FireMan Offline
Member

Post: #5
RE: Problem with Players and Tree's
Ok. I make this smile

Forum reklamowe: http://ad-forum.pl
01-29-2010 10:11 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply