Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> I can't make friction to save my life, GM7/GM6
United States
SuperMarioMaster
Posted: May 1 2009, 10:23 PM
Quote Post


It's been real
[*]

Group Icon
Group: Members
Posts: 2145
Member No.: 4476
Joined: 22-September 07

Status: (0d) [--]


Could someone assist me?


--------------------
PMEmail Poster
Top
Canada
Elixer
Posted: May 1 2009, 10:59 PM
Quote Post


Fully Restores Health and Mana
[*]

Group Icon
Group: Members
Posts: 673
Member No.: 6178
Joined: 15-April 09

Status: (0d) [--]


Rub two things together really fast?...
Not fully sure what ya mean lol.


--------------------
I am not interested in ordinary people
If there are any aliens, time travelers, espers or sliders, please come with me
That is all

user posted image user posted image user posted image
Blazblue: Main user posted image Subs user posted image user posted image
user posted image
PMEmail PosterUsers WebsiteAOL
Top
United States
Datt
Posted: May 1 2009, 11:11 PM
Quote Post


I'm having a blast
[*][*]

Group Icon
Group: Members
Posts: 1022
Member No.: 4623
Joined: 24-October 07

Status: (0d) [--]


QUOTE
Rub two things together really fast?...
Not fully sure what ya mean lol.

Well it did say GM6/7..

Anyways,
I usually define the friction with the gravity and collision in the step event.

For example

CODE

if place_free(x,y+1)//checks if there is ground below
{
action_set_gravity(270,0.38)//makes you fall when you are in air
friction = 0.1//sets friction in the air
}
else
{
action_set_gravity(270,0)//stops if you are on ground
friction = 0.2//sets friction when on ground
}


Since you set up friction, you don't have to set up a keyboard_release event, since the friction will make you come to a stop.

This post has been edited by Im4everkool on May 1 2009, 11:15 PM


--------------------
QUOTE (Mario_6464SMR's reply to Mrs A)
his name's not Halo it's the master chief, and i don't know what "doesn't afraid of anything" means, have u ever played halo before?

PMUsers Website
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.0675 ]   [ 14 queries used ]   [ GZIP Enabled ]   [ Server Load: 1.75 ]