Log in
Search
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.Maybe a stupid question
+3
Vivi_IX
-js1210-
CarnivorousA
7 posters
:: Game Making :: Game Maker Help :: Game Dev. Q&A :: GML help (Coding)
Page 1 of 1
Maybe a stupid question
In this line move_towards_point(obj_object.x,obj_object.y,-variable) how do I make the speed (variable) relative?
Thanks for reading.
Thanks for reading.
Re: Maybe a stupid question
Well to add relativly put
speed+=6
To subtract relativly put
speed-=6
Get it?
speed+=6
To subtract relativly put
speed-=6
Get it?
Re: Maybe a stupid question
I would guess:
move_towards_point(obj_object.x,obj_object.y,speed-variable)
Got bored so I color-coded.
move_towards_point(obj_object.x,obj_object.y,speed-variable)
Got bored so I color-coded.
Re: Maybe a stupid question
move_towards_point(obj_object.x,obj_object.y,speed- =variable
wouldn't this work better?
wouldn't this work better?
fooey- Moderator
- Posts : 1422
Points : 55550
GameML Reputation : 1
Join date : 2009-07-10
Age : 29
Location : here
Re: Maybe a stupid question
I would do:
motion_add(point_direction(x,y,other.x,other.y),3)
since it's adding the motion, it's relative
motion_add(point_direction(x,y,other.x,other.y),3)
since it's adding the motion, it's relative
Re: Maybe a stupid question
you could of also used the uultamate D&d converter select the move toward point icon fill out info and copy it
Re: Maybe a stupid question
He's gotta point. I woulda said that. But I don't thin k GBS is looking at this anymore XD
Similar topics
» Windows Movie Maker is being incredibly stupid
» A question on how to do something in GML
» Ask a Question
» Question Game
» An Important Question About Metroid Prime 3
» A question on how to do something in GML
» Ask a Question
» Question Game
» An Important Question About Metroid Prime 3
:: Game Making :: Game Maker Help :: Game Dev. Q&A :: GML help (Coding)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|