Jump to content


Photo

Akward pauses while falling


  • Please log in to reply
5 replies to this topic

#1 Swordkirby9999

Swordkirby9999

    GMC Member

  • GMC Member
  • 44 posts
  • Version:GM8

Posted 19 March 2012 - 02:17 AM

EDIT: This issue is solved, so I'd like to thank you guys and post the code I found correct. Can anyone tell me how to edit the title?

Sprite size: 48x64
Gravity: 0.5
Platform size: 16x16 each block

For Object: "Kid(test)"
**Step**
If a position is collision free relative to (0,1) with only solid objects
>>Set gravity to 0.5 in direction 270
Else
>>Set gravity to 0 in direction 270
>>If variable "vspeed" is greater than 12
>>>>set variable "vspeed" to 12

**Collison with object: "Platform"**
If vspeed is larger than 0 (This should have come first)
>>Set the vertical speed to 0
>>Move to contact in direction 270 with maximum 12 against solid objects

Thank you ^^

Edited by Swordkirby9999, 19 March 2012 - 01:28 PM.

  • 0

#2 Katuko

Katuko

    GMC Member

  • GMC Member
  • 5798 posts

Posted 19 March 2012 - 02:22 AM

EDIT: Disregard.

Edited by Katuko, 19 March 2012 - 02:23 AM.

  • 0

#3 Zwander

Zwander

    GMC Member

  • New Member
  • 181 posts
  • Version:GM8

Posted 19 March 2012 - 03:34 AM

**Collison with object: "Platform"**
Set the vertical speed to 0
If vspeed is larger than 0
>>Move to contact in direction 270 with maximum 12 against solid objects


Read what you have written.
  • 0

#4 Swordkirby9999

Swordkirby9999

    GMC Member

  • GMC Member
  • 44 posts
  • Version:GM8

Posted 19 March 2012 - 04:28 AM



**Collison with object: "Platform"**
Set the vertical speed to 0
If vspeed is larger than 0
>>Move to contact in direction 270 with maximum 12 against solid objects


Read what you have written.


What about it? Just reading the code I already have does not give me any new information... are you saying I should remove the code because that is causing the problem, or are you telling me to change one of the variables?
Your answer is pretty vauge
  • 0

#5 lukew23

lukew23

    GMC Member

  • GMC Member
  • 276 posts
  • Version:Unknown

Posted 19 March 2012 - 05:26 AM

Read it as the computer would.

-set vspeed to 0

-if vspeed > 0 ....

in what possible way could vspeed be > 0 if it has just been set to 0?
  • 0

#6 Zwander

Zwander

    GMC Member

  • New Member
  • 181 posts
  • Version:GM8

Posted 19 March 2012 - 06:10 AM

Read it as the computer would.

-set vspeed to 0

-if vspeed > 0 ....

in what possible way could vspeed be > 0 if it has just been set to 0?


I was trying not to spell it out lol. Makes you learn quicker. But yea. All good.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users