This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
3
"Approach" function not recognized, GMS2
Post Flair (click to view more posts with a particular flair)
Post Body
I tried using the approach function in my player object only for it to be recognized as a variable and turn purple. I put it in my player object's step event under horizontal movement:
var dir = key_right - key_left;
hsp = dir * hsp_acc;
if (dir == 0)
{
var hsp\_fric\_final = hsp\_fric\_ground;
if (longround) hsp\_fric\_final = hsp\_fric\_air;
hsp = Approach(hsp,0,hsp\_fric\_final);
}
hsp = clamp(hsp,-hsp_walk,hsp_walk);
If anyone knows why it won't turn orange I'd appreciate it!
Author
User Disabled
Account Strength
0%
Disabled 1 year ago
Account Age
7 years
Verified Email
No
Verified Flair
No
Total Karma
9,918
Link Karma
7,738
Comment Karma
2,180
Profile updated: 4 days ago
Posts updated: 1 year ago
Subreddit
Post Details
We try to extract some basic information from the post title. This is not
always successful or accurate, please use your best judgement and compare
these values to the post title and body for confirmation.
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/gamemaker/c...