Be a Supporter!

A function problem.

  • 304 Views
  • 4 Replies
New Topic Respond to this Topic
Max-Pain
Max-Pain
  • Member since: Jul. 7, 2004
  • Offline.
Forum Stats
Member
Level 34
Blank Slate
A function problem. 2006-08-09 03:49:14 Reply

I am trying to make a platform game when your man can jump..
but my function isnt working well it... my man always jump from
one place to another without the "smooth animation".
If my man was in _y = 200 and I want him to get to _y = 300
with his speed.. not just like that.

I want my man to show me the levels of his jump.

Edvin
Edvin
  • Member since: Feb. 3, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to A function problem. 2006-08-09 05:49:21 Reply

Show the code maybe?

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to A function problem. 2006-08-09 05:55:59 Reply

At 8/9/06 03:49 AM, Max-Pain wrote: I want my man to show me the levels of his jump.

You mean tracing the value of the variable equal to his jump speed? You need to show the code.


BBS Signature
Edvin
Edvin
  • Member since: Feb. 3, 2004
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to A function problem. 2006-08-09 06:10:48 Reply

At 8/9/06 05:55 AM, -Toast- wrote:
At 8/9/06 03:49 AM, Max-Pain wrote: I want my man to show me the levels of his jump.
You mean tracing the value of the variable equal to his jump speed? You need to show the code.

No, he means that when he makes his character jump, he goes straight from for example _y = 300 to _y = 400 without any intermediate positions to simulate the jumping.

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to A function problem. 2006-08-09 06:15:25 Reply

Let me guess, your code is Key.isDown(Key.UP)? _y = 300:0; , or something like that, right? :P


BBS Signature