Crystal Space
Welcome, Guest. Please login or register.
November 21, 2017, 01:31:31 am

Login with username, password and session length
Search:     Advanced search
9081 Posts in 2051 Topics by 80539 Members
Latest Member: Nymykzjxm6
* 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 3131 times)
Jr. Member
Posts: 74

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:

else if (msg_id == id_pccommandinput_run1)
else if (msg_id == id_pccommandinput_run0)

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.

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 4.373 seconds with 16 queries.