Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Game Maker 7 Help: Better ground collision than, move to collision with solids
Unspecified
jhsoft
  Posted: Jun 13 2008, 11:44 PM
Quote Post


This grimmace is not the McDonalds kind.


Group Icon
Group: Members
Posts: 78
Member No.: 2850
Joined: 24-October 06

Status: (0d) [--]


When you use things like
CODE
vspeed = 0
move_contact_solid(270,15)
you get a small lag time when the landing unit touches the ground, rendering you not to turn left or right. What woud be a better way to handle collision?

This post has been edited by jhsoft on Jun 14 2008, 01:28 AM


--------------------
Current Projects:
Bony Beetle Strikes Back: Working Title
Coding:|||||||||
Level Design:|||||||||
Sprites and Graphics:|||||||||
Sounds:||||||||||
In Total:||||||||||



Which Neglected Mario Character Are You?

CODE
Thwomp Master says (5:59 AM):
I'm not crying
Thwomp Master says (6:00 AM):
And I never complained
Thwomp Master says (6:00 AM):
I just said I have 56 complaints
PMEmail PosterUsers WebsiteMSN
Top
United States
Elyk
Posted: Jun 13 2008, 11:50 PM
Quote Post


Standard Member
[*][*][*][*]

Group Icon
Group: Members
Posts: 6604
Member No.: 3808
Joined: 22-May 07

Status: (0d) [--]


swap them

move_contact_solid(direction,12)
vspeed=0


--------------------
user posted image
PMEmail PosterUsers WebsiteAOLMSN
Top
Unspecified
jhsoft
Posted: Jun 13 2008, 11:53 PM
Quote Post


This grimmace is not the McDonalds kind.


Group Icon
Group: Members
Posts: 78
Member No.: 2850
Joined: 24-October 06

Status: (0d) [--]


QUOTE (Elyk @ Jun 13 2008, 11:50 PM)
swap them

move_contact_solid(direction,12)
vspeed=0

Oh sorry, I misstyped, I'm using that.
CODE
move_contact_solid(direction,12)
vspeed = 0


--------------------
Current Projects:
Bony Beetle Strikes Back: Working Title
Coding:|||||||||
Level Design:|||||||||
Sprites and Graphics:|||||||||
Sounds:||||||||||
In Total:||||||||||



Which Neglected Mario Character Are You?

CODE
Thwomp Master says (5:59 AM):
I'm not crying
Thwomp Master says (6:00 AM):
And I never complained
Thwomp Master says (6:00 AM):
I just said I have 56 complaints
PMEmail PosterUsers WebsiteMSN
Top
Unspecified
jhsoft
Posted: Jun 14 2008, 02:31 AM
Quote Post


This grimmace is not the McDonalds kind.


Group Icon
Group: Members
Posts: 78
Member No.: 2850
Joined: 24-October 06

Status: (0d) [--]


This problem still hasn't been resolved...if that's what people think...


--------------------
Current Projects:
Bony Beetle Strikes Back: Working Title
Coding:|||||||||
Level Design:|||||||||
Sprites and Graphics:|||||||||
Sounds:||||||||||
In Total:||||||||||



Which Neglected Mario Character Are You?

CODE
Thwomp Master says (5:59 AM):
I'm not crying
Thwomp Master says (6:00 AM):
And I never complained
Thwomp Master says (6:00 AM):
I just said I have 56 complaints
PMEmail PosterUsers WebsiteMSN
Top
Canada
MegaTailzChao
Posted: Jun 14 2008, 02:32 AM
Quote Post


So long, and thanks for all the fish.
[S][*][*][*][*]
[*][*]

Group Icon
Group: Site Staff
Posts: 15788
Member No.: 2267
Joined: 2-July 06

Status: (0d) [--]


don't use direction, use 270, for one.

Also what is the movement code


--------------------
user posted image
user posted imageuser posted image
PMEmail PosterMSN
Top
Finland
Ultramario
Posted: Jun 14 2008, 06:41 AM
Quote Post


Dan Dan Dan!
[*][*][*][*][*]


Group Icon
Group: Members
Posts: 11240
Member No.: 2164
Joined: 9-June 06

Status: (0d) [--]


CODE
if y < other.y
{y = other.y-32
vspeed = 0}


--------------------
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Miaxis
Posted: Jun 14 2008, 07:35 AM
Quote Post


hagan bromas
[*]

Group Icon
Group: Members
Posts: 1799
Member No.: 2793
Joined: 12-October 06

Status: (0d) [--]


QUOTE (Ultramario @ Jun 14 2008, 01:41 PM)
CODE
if y < other.y
{y = other.y-32
vspeed = 0}

THIS seriously needs a sticky since people still keep asking the same question over and over.


--------------------
user posted image

user posted imageuser posted imageuser posted imageuser posted image
PMEmail PosterUsers WebsiteMSN
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

  Topic Options Topic Options Reply to this topicStart new topicStart Poll

 




[ Script Execution time: 0.0752 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 0.20 ]