Game Maker, anyone?

Meaningful discussion outside of the potato gun realm. Projects, theories, current events.
User avatar
saefroch
Staff Sergeant 2
Staff Sergeant 2
Posts: 1679
Joined: Mon Jun 08, 2009 8:47 am
Location: U.S.A.- See Map

So I guess from this thread that there are some programmers on here. Is anyone here good with Game Maker? I'm having some (probably n00bish) problems, and the Game Maker forum isn't sending me an e-mail so I can register, so I figured I'd just try here.

I'm not going to start just spewing out code if nobody can understand it :roll:
User avatar
Davidvaini
Sergeant 4
Sergeant 4
Posts: 1315
Joined: Tue May 29, 2007 8:58 pm

saefroch wrote:So I guess from this thread that there are some programmers on here. Is anyone here good with Game Maker? I'm having some (probably n00bish) problems, and the Game Maker forum isn't sending me an e-mail so I can register, so I figured I'd just try here.

I'm not going to start just spewing out code if nobody can understand it :roll:
I've never used GameMaker, but I am a programmer, so if you need any help I might be able to help. I also have taken simulation courses in college that involve game design... we used a game engine called unity (which is alright).. So I have some experience there...
User avatar
saefroch
Staff Sergeant 2
Staff Sergeant 2
Posts: 1679
Joined: Mon Jun 08, 2009 8:47 am
Location: U.S.A.- See Map

So I'm trying to use the path-based motion planning function, but when I run the below set of calls on my grid to produce a path in the step event for the object "enemy", it uses the path for the enemy closest to the object "rk" for all enemies moving.

Code: Select all

//Create the grid
mp_grid_clear_all(grid)

//Mark occupied cells
mp_grid_add_instances(grid,wall,false)
mp_grid_add_instances(grid,lgate,false)
mp_grid_add_instances(grid,rgate,false)
if global.etarget[target] != sage.id {mp_grid_add_instances(grid,sage,false)}
if global.etarget[target] != rk.id {mp_grid_add_instances(grid,rk,false)}
for (i=0; i<=global.rmtargets; i+=1) if global.target[i] != id {mp_grid_add_instances(grid,global.target[i],false)}

//Generate the path "path0" from grid "grid"- and that space isn't actually there
mp_grid_path(grid,path0,x,y,global.etarget[target].x,global.etarget[target].y,true)

//Run the generated path
path_start(path0,1,0,true)
User avatar
jhalek90
Specialist 4
Specialist 4
Posts: 498
Joined: Fri Aug 14, 2009 5:37 pm

I've used GM sence 4.0 2005ish send me a pm here on spudfiles and I will help You fix your problem.

My username on the GMC is twisted_games. Take a look at some of my posts there.
jackssmirkingrevenge wrote:I wonder... if you put flammable vapours inside a lady... could you get her to diesel?
POLAND_SPUD wrote:Anything is possible with the proper 3-way valve.
User avatar
jhalek90
Specialist 4
Specialist 4
Posts: 498
Joined: Fri Aug 14, 2009 5:37 pm

I've used GM sence 4.0 2005ish send me a pm here on spudfiles and I will help You fix your problem.

My username on the GMC is twisted_games. Take a look at some of my posts there.
jackssmirkingrevenge wrote:I wonder... if you put flammable vapours inside a lady... could you get her to diesel?
POLAND_SPUD wrote:Anything is possible with the proper 3-way valve.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

  • Similar Topics
    Replies
    Views
    Last post
  • noise maker
    by judgment_arms » » in Combustion Cannons
    12 Replies
    4069 Views
    Last post by judgment_arms
  • The Hole Maker
    by apocavorme » » in Pneumatic Cannons
    8 Replies
    2926 Views
    Last post by jackssmirkingrevenge
  • Help with Noise Maker
    by crazyhorse » » in General Cannon Discussion
    10 Replies
    4242 Views
    Last post by Ballad_Black
  • Maker Faire 2008
    by SEAKING9006 » » in Off-Topic Hobbies
    4 Replies
    1317 Views
    Last post by SEAKING9006
  • piston noise maker
    by Dgealy » » in Pneumatic Cannons
    2 Replies
    1753 Views
    Last post by qwerty