# Akward pauses while falling

5 replies to this topic

### #1 Swordkirby9999

Swordkirby9999

GMC Member

• GMC Member
• 44 posts
• Version:GM8

Posted 19 March 2012 - 02:31 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:42 PM.

• 0

I'm Happy... DEAL WITH IT!

### #2 Katuko

Katuko

GMC Member

• GMC Member
• 5968 posts

Posted 19 March 2012 - 02:36 AM

EDIT: Disregard.

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

• 0
My other profiles:

### #3 Zwander

Zwander

GMC Member

• New Member
• 181 posts
• Version:GM8

Posted 19 March 2012 - 03:48 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

Just remember, your talking to a 14 year old adolescent male here.

▼ Did this Post help? Click Below ▼

### #4 Swordkirby9999

Swordkirby9999

GMC Member

• GMC Member
• 44 posts
• Version:GM8

Posted 19 March 2012 - 04:42 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?
• 0

I'm Happy... DEAL WITH IT!

### #5 lukew23

lukew23

GMC Member

• GMC Member
• 276 posts
• Version:Unknown

Posted 19 March 2012 - 05:40 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:24 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

Just remember, your talking to a 14 year old adolescent male here.

▼ Did this Post help? Click Below ▼