Page 1 of 1

Game Maker, anyone?

Posted: Mon Jan 10, 2011 9:14 pm
by saefroch
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:

Re: Game Maker, anyone?

Posted: Tue Jan 11, 2011 3:01 am
by Davidvaini
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...

Posted: Tue Jan 11, 2011 7:45 am
by saefroch
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)

Posted: Thu Jan 13, 2011 5:09 pm
by jhalek90
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.

Posted: Thu Jan 13, 2011 5:39 pm
by jhalek90
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.