Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: problem with running  (Read 1421 times)

0 Members and 1 Guest are viewing this topic.

Godsend72

  • Newbie
  • *
  • Posts: 20
    • View Profile
problem with running
« on: March 03, 2014, 05:20:03 pm »
Hello.
I'm trying to make something like a "pick a stick" game. I have tried to implement running, i have a little bar above players head witch indicates how much can i run, the more i run the shorter it gets and it works, but when i change the direction it doesn't decrease right away, more like 1 second later.


here is a link to download, source is included: https://mega.co.nz/#F!9o9VDTxD!iTX9sxrfU7vEl_J9cxBSsQ
here is a download link in rar: https://mega.co.nz/#!F40BBZxJ!8nSfhafyxNyMbAFybxCrAdIKXSdKPMOguiiIL4zvCiE

image: http://oi62.tinypic.com/55gjyo.jpg


you walk with: WASD
you run with: Left Shift


the numbers above your head are the number of woods collected, 1 wood fill's your running bar 25%



What i wanted to ask is can some one look at it and point me to the problem, just this one time :D
« Last Edit: March 03, 2014, 05:27:58 pm by Godsend72 »

The Terminator

  • Full Member
  • ***
  • Posts: 224
  • Windows and Mac C++ Developer
    • View Profile
problem with running
« Reply #1 on: March 03, 2014, 07:10:18 pm »
Put together a small program that demonstrates your problem. Nobody is going to dig through all of your code and tell you what the problem is.
Current Projects:
Technoport