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!

Join the forum, it's quick and easy

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!
Would you like to react to this message? Create an account in a few clicks or log in to continue.
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: https://gameml.forumotion.com/GameML-File-Sharing-h3.htmPlease add only games.
Create A GAMEML BLOG!
Make a Blog on GameML:http://gamemlblogs.wetpaint.com

Maybe a stupid question

+3
Vivi_IX
-js1210-
CarnivorousA
7 posters

Go down

Maybe a stupid question Empty Maybe a stupid question

Post by CarnivorousA 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.
CarnivorousA
CarnivorousA
Moderator
Moderator

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

http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

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

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

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

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

http://www.yoyogames.com/members/js1210

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

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

Yes but I mean in that line of code.
CarnivorousA
CarnivorousA
Moderator
Moderator

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

http://entertainmypeople.freeforums.org/index.php

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

Post by Vivi_IX 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
Vivi_IX
Vivi_IX
Tres GameML Ninja
Tres GameML Ninja

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

http://www.yoyogames.com/members/Vivi_IX

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

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

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

wouldn't this work better?
fooey
fooey
Moderator
Moderator

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

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

Post by GoldenBeastStudios 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
GoldenBeastStudios
GoldenBeastStudios
GameML Adventurer
GameML Adventurer

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

http://www.goldenbeaststudios.com

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

Post by The Dark Ninja 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
The Dark Ninja
The Dark Ninja
Super 500 GML
Super 500 GML

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

http://www.thedakninja.tastyhamgames.com

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

Post by The SNIC 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
The SNIC
The SNIC
Moderator
Moderator

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

https://www.youtube.com/gigaroid

Back to top Go down

Maybe a stupid question Empty Re: Maybe a stupid question

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

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