Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
problem with running
Print
Pages: [
1
]
Author
Topic: problem with running (Read 1421 times)
0 Members and 1 Guest are viewing this topic.
Godsend72
Newbie
Posts: 20
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
«
Last Edit: March 03, 2014, 05:27:58 pm by Godsend72
»
Logged
The Terminator
Full Member
Posts: 224
Windows and Mac C++ Developer
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.
Logged
Current Projects:
Technoport
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
problem with running