Crystal Space
Welcome, Guest. Please login or register.
July 30, 2014, 09:05:06 pm

Login with username, password and session length
Search:     Advanced search
9005 Posts in 2043 Topics by 8260 Members
Latest Member: Lovelymae39
* Home Help Search Login Register
+  Crystal Space
|-+  Associate Projects
| |-+  CEL Discussion
| | |-+  Minor problem using iPcActorMove->Run(bool) method
« previous next »
Pages: [1] Print
Author Topic: Minor problem using iPcActorMove->Run(bool) method  (Read 2166 times)
bernardofd
Jr. Member
**
Posts: 74


59948732 bernardofd@click21.com.br
View Profile WWW
« on: February 15, 2006, 05:36:09 pm »

Hello guys;

I'm using this 'pièce' of code to enable running in my app:

Code:
.
.
.
else if (msg_id == id_pccommandinput_run1)
pcactormove->Run(true);
else if (msg_id == id_pccommandinput_run0)
pcactormove->Run(false);
.
.
.

I've bind "shift" for running.

The problem is: when you stop (i.e. release 'shift' and the movement key at the same time) while running, the player keeps moving in the same direction that it was moving before stopping with no keys pressed, although without running. I've tried adding some boolean variables to try to control the run; tried to disable movement when the run key is released too, both without success. I've just tried binding other key for running (here, 'z' key) and it worked fine. Why shouldn't the shift key work well?

Thanks in advance...

P.S. Offtopic -> We're soon going to release a little preview of our project. We're thinking in release a source package (only if the user have CS and CEL compiled it will work) and a windows binary (with all pre-compiled dlls). News soon...

P.S. 2 -> I'm using CS and CEL PseudoStable-09-03 in Linux.
Logged

__________________________
Bernardo Figuerêdo Domingues
Computer Science - UFMG - Brazil
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 5.203 seconds with 15 queries.