Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> Horizontal Acceleration, I can't seem to get it right
Unspecified
Drivinucrazy Games
Posted: Mar 17 2008, 01:43 PM
Quote Post


OOH, a shiny...something?


Group Icon
Group: Members
Posts: 17
Member No.: 4847
Joined: 18-December 07

Status: (0d) [--]


Can someone tell me how to do non-glitchy, non-wallsticking horizontal acceleration? I'll credit you in the...credits.


--------------------
Waddle Dee's are better than YOU.
PMEmail Poster
Top
United States
Elyk
Posted: Mar 17 2008, 01:45 PM
Quote Post


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

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

Status: (0d) [--]


with?
PMEmail PosterUsers WebsiteAOLMSN
Top
Finland
Ultramario
Posted: Mar 17 2008, 01:56 PM
Quote Post


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


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

Status: (0d) [--]


To Step event:
CODE
if relative position (hspeed*1.5,0) gives a collision with Only solid objects
     if relative position (0,0) gives not a collision with Only solid objects
     set the horizontal speed to 0


--------------------
PMEmail PosterUsers WebsiteAOL
Top
Unspecified
Drivinucrazy Games
Posted: Mar 17 2008, 02:09 PM
Quote Post


OOH, a shiny...something?


Group Icon
Group: Members
Posts: 17
Member No.: 4847
Joined: 18-December 07

Status: (0d) [--]


QUOTE (Ultramario @ Mar 17 2008, 01:56 PM)
To Step event:
CODE
if relative position (hspeed*1.5,0) gives a collision with Only solid objects
     if relative position (0,0) gives not a collision with Only solid objects
     set the horizontal speed to 0

ty


--------------------
Waddle Dee's are better than YOU.
PMEmail Poster
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.0493 ]   [ 15 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.33 ]