Powered by Invision Power Board

 
    Reply to this topicStart new topicStart Poll

> How do I do this in GML?
Unspecified
Captain Cook
Posted: Sep 8 2008, 12:22 PM
Quote Post


Seriously, give the guy some love...
[*]

Group Icon
Group: Members
Posts: 481
Member No.: 5138
Joined: 3-April 08

Status: (0d) [--]


There's this D&D action in Game Maker called "Create Moving" where you can create an instant of an object and set a direction and speed at the same time. If one wants to make several objects at the same time or in succession, they can use this action over and over again.

What's the best way to do this with GML?

(Please provide an example by creating 8 instances of something 45 degrees apart, allowing for different speeds.)

In addition, how do you do "Step Avoiding" in GML?
PMEmail Poster
Top
Spain
Sergeant DeeY
Posted: Sep 8 2008, 02:13 PM
Quote Post


~Heh Heh~
[*][*][*]

Group Icon
Group: Members
Posts: 1344
Member No.: 4730
Joined: 17-November 07

Status: (0d) [--]


ID = instance_create(x,y,object)
with ID motion_set(direction,speed)

This can help you!

This post has been edited by Darkyoshi on Sep 8 2008, 02:14 PM


--------------------
The signature will not be available when the new forums shows up.
~~DeeY~~
PMUsers Website
Top
Austria
Guinea
Posted: Sep 8 2008, 02:17 PM
Quote Post


6
[A][*][*][*][*]
[*][*][*][*][*]
[*]

Group Icon
Group: Admins
Posts: 8600
Member No.: 893
Joined: 15-March 05

Status: (0d) [--]


QUOTE (Captain Cook @ Sep 8 2008, 06:22 PM)
There's this D&D action in Game Maker called "Create Moving" where you can create an instant of an object and set a direction and speed at the same time. If one wants to make several objects at the same time or in succession, they can use this action over and over again.

What's the best way to do this with GML?

(Please provide an example by creating 8 instances of something 45 degrees apart, allowing for different speeds.)

In addition, how do you do "Step Avoiding" in GML?

For the first question, do what Darkyoshi said.
For the second, just go to the help file and look for the "mp_" functions.
PMEmail PosterAOLMSN
Top
Spain
Sergeant DeeY
Posted: Sep 8 2008, 02:37 PM
Quote Post


~Heh Heh~
[*][*][*]

Group Icon
Group: Members
Posts: 1344
Member No.: 4730
Joined: 17-November 07

Status: (0d) [--]


QUOTE (Guinea @ Sep 8 2008, 09:17 PM)
For the first question, do what Darkyoshi said.
For the second, just go to the help file and look for the "mp_" functions.

If found this on this Page

Step Avoiding
mp_potential_step(x,y,stepsize,checkall);


--------------------
The signature will not be available when the new forums shows up.
~~DeeY~~
PMUsers Website
Top
Unspecified
Captain Cook
Posted: Sep 8 2008, 04:14 PM
Quote Post


Seriously, give the guy some love...
[*]

Group Icon
Group: Members
Posts: 481
Member No.: 5138
Joined: 3-April 08

Status: (0d) [--]


Okey dokey. Thanks guys.
PMEmail Poster
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.0451 ]   [ 15 queries used ]   [ GZIP Enabled ]   [ Server Load: 2.25 ]