About Store Forum Documentation Contact
Donations:
309$/mo



Post Reply 
Pathfind tutorial decal question
Author Message
Tobbo Offline
Member

Post: #1
Pathfind tutorial decal question
I am experimenting with the Pathfind tutorial code. I'm in a little bit of a pickle and I can't seem to find a solution. I'm still fairly new to programming, but learning and picking it up fast.

I have left click to move. The decal is on the terrain at the destination. (default)
I have added the ability to also move by holding down the left mouse button and move the cursor around.

The problem is the decal stays visible where I first clicked while holding it down.
Is it possible to make the decal hidden while the left mouse button is being held down?
I'm looking for something similar to what Diablo 3 has.

I assume it has something to do with this code or something similar under the void Render()

if(Chrs.elms())
if(Chrs[0].action==Game::ACTION_MOVE_TO)decal.drawStatic();

I've tried several things with no success. Any help would be greatly appreciated.
(This post was last modified: 08-19-2012 12:09 AM by Tobbo.)
08-16-2012 01:21 AM
Find all posts by this user Quote this message in a reply
Tobbo Offline
Member

Post: #2
RE: Pathfind tutorial decal question
Nevermind. I figured it out.
08-20-2012 01:50 AM
Find all posts by this user Quote this message in a reply
Post Reply