Game Maker, anyone?

Meaningful discussion outside of the potato gun realm. Projects, theories, current events. Non-productive discussion will be locked.
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

Mon Jan 10, 2011 9:14 pm

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

Tue Jan 11, 2011 3:01 am

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

Tue Jan 11, 2011 7:45 am

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

Thu Jan 13, 2011 5:09 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

Thu Jan 13, 2011 5:39 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