Game Maker

Need help with an engine or coding not on the list? Need help with a game or the website and forums here? Direct all questions here.
Post Reply
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Game Maker

Post by Jesusfreak »

So far I've been able to make enemies spawn and fire bullets in the right direction, but I have a problem I can't figure out how to fix:

The enemies only go horizontally. They're supposed to go sideways of whatever direction they're facing, so if one is facing left or right, it should go up, but it doesn't. Also, I notice that ones facing down tend to fire more than others.

Got any ideas? I'll add screenies so you can see what I'm doing:
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
hallsofvallhalla
Site Admin
Posts: 12031
Joined: Wed Apr 22, 2009 11:29 pm

Re: Game Maker

Post by hallsofvallhalla »

i cant help out here but nice work sticking with this
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Game Maker

Post by Jesusfreak »

Oh, yah, that reminds me...

Can someone post the link to the tutorials? I remember the tutorials being linked once but I can't find it again...
It might be in the tutorials... chances are, I put something in the wrong order or used the wrong action.
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
Warriorccc0
Posts: 92
Joined: Thu Jun 18, 2009 5:37 am

Re: Game Maker

Post by Warriorccc0 »

You could have it check for what sprite the enemy currently has, then shoot the right direction.
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Game Maker

Post by Jesusfreak »

That's what I did. Apparently, it didn't seem to do it quite right.

What did I do wrong? (I posted screenies so you could see)
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
Warriorccc0
Posts: 92
Joined: Thu Jun 18, 2009 5:37 am

Re: Game Maker

Post by Warriorccc0 »

Well, whats with the brackets in it?
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Game Maker

Post by Jesusfreak »

It gives an error message when you use variables without brackets, doesn't it? Or at least it did before I added the brackets...
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
User avatar
Warriorccc0
Posts: 92
Joined: Thu Jun 18, 2009 5:37 am

Re: Game Maker

Post by Warriorccc0 »

GM never uses brackets except if its for something like background[0], alarm[1], view_xview[2], etc.
User avatar
Jesusfreak
Posts: 231
Joined: Mon Jun 08, 2009 1:43 pm

Re: Game Maker

Post by Jesusfreak »

Ok, I removed the brackets, but the ones that are supposed to travel vertically still go horizontally, and for some reason, more of them point down than left (and I've yet to see a right or up at all).
Maybe I arranged the "Chance" variables the wrong way?
Image
_-= Official Noob Label -=_
For those with self esteem like mine =).
Post Reply

Return to “Advanced Help and Support”