Hello, thanks for visiting GameML, if you are a Game Maker user, this is the site for you, please sign up, or login if you are already a member, or just browse the site! Welcome to GameML!

ATTENTION MEMBERS!!! USERS CAN NOW SIGN UP AGAIN!
Log in

I forgot my password

Search
 
 

Display results as :
 


Rechercher Advanced Search

Site Hits
Free hit counter
These stats started at 0 on July 7th 2009
GameML File Sharing
USERNAME: gamemladmin@gmail.com PASSWORD: gamemlsite Upload Here: http://gameml.iowoi.org/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com
Keywords


Maybe a stupid question

View previous topic View next topic Go down

Maybe a stupid question

Post by CarnivorousA on Sat Sep 19, 2009 11:08 pm

In this line move_towards_point(obj_object.x,obj_object.y,-variable) how do I make the speed (variable) relative?
Thanks for reading.

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 32582
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: Maybe a stupid question

Post by -js1210- on Sun Sep 20, 2009 1:20 pm

Well to add relativly put
speed+=6
To subtract relativly put
speed-=6

Get it?
avatar
-js1210-
Super 500 GML
Super 500 GML

Posts : 1298
Points : 32732
GameML Reputation : 27
Join date : 2009-06-02
Age : 22
Location : United States

View user profile http://www.yoyogames.com/members/js1210

Back to top Go down

Re: Maybe a stupid question

Post by CarnivorousA on Tue Sep 22, 2009 12:23 am

Yes but I mean in that line of code.

_________________
avatar
CarnivorousA
Moderator
Moderator

Posts : 1402
Points : 32582
GameML Reputation : 17
Join date : 2009-06-01
Age : 23
Location : At the bottom of the lake.

View user profile http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Re: Maybe a stupid question

Post by Vivi_IX on Sat Sep 26, 2009 1:07 pm

I would guess:
move_towards_point(obj_object.x,obj_object.y,speed-variable)

Got bored so I color-coded. Smile
avatar
Vivi_IX
Tres GameML Ninja
Tres GameML Ninja

Posts : 164
Points : 30478
GameML Reputation : 14
Join date : 2009-07-09
Age : 27
Location : USA: Painesville, Ohio

View user profile http://www.yoyogames.com/members/Vivi_IX

Back to top Go down

Re: Maybe a stupid question

Post by fooey on Sat Sep 26, 2009 1:34 pm

move_towards_point(obj_object.x,obj_object.y,speed- =variable

wouldn't this work better?

_________________
we are the champions - my friends
And we'll keep on fighting - till the end -
We are the champions -
We are the champions
No time for losers
'Cause we are the champions - of the world -
avatar
fooey
Moderator
Moderator

Posts : 1422
Points : 31750
GameML Reputation : 1
Join date : 2009-07-10
Age : 22
Location : here

View user profile

Back to top Go down

Re: Maybe a stupid question

Post by GoldenBeastStudios on Sat Sep 26, 2009 2:08 pm

I would do:
motion_add(point_direction(x,y,other.x,other.y),3)

since it's adding the motion, it's relative Smile
avatar
GoldenBeastStudios
GameML Adventurer
GameML Adventurer

Posts : 117
Points : 30424
GameML Reputation : 2
Join date : 2009-07-09
Age : 34
Location : Austin, Texas

View user profile http://www.goldenbeaststudios.com

Back to top Go down

Re: Maybe a stupid question

Post by The Dark Ninja on Sat Sep 26, 2009 4:39 pm

you could of also used the uultamate D&d converter select the move toward point icon fill out info and copy it
avatar
The Dark Ninja
Super 500 GML
Super 500 GML

Posts : 1495
Points : 33144
GameML Reputation : 7
Join date : 2009-06-16
Location : Earth

View user profile http://www.thedakninja.tastyhamgames.com

Back to top Go down

Re: Maybe a stupid question

Post by The SNIC on Mon Nov 02, 2009 2:51 pm

He's gotta point. I woulda said that. But I don't thin k GBS is looking at this anymore XD

_________________
My site is new and good! and it's going to be able to host games and stuff! Check it out! http://cazigeneration.vampire-legend.com/index.htm
avatar
The SNIC
Moderator
Moderator

Posts : 677
Points : 31050
GameML Reputation : 4
Join date : 2009-07-10
Age : 1008
Location : MI

View user profile http://www.youtube.com/gigaroid

Back to top Go down

Re: Maybe a stupid question

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum