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:
Game Maker
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Game Maker
_-= Official Noob Label -=_
For those with self esteem like mine =).
- hallsofvallhalla
- Site Admin
- Posts: 12023
- Joined: Wed Apr 22, 2009 11:29 pm
Re: Game Maker
i cant help out here but nice work sticking with this
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Game Maker
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.
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.
_-= Official Noob Label -=_
For those with self esteem like mine =).
- Warriorccc0
- Posts: 92
- Joined: Thu Jun 18, 2009 5:37 am
Re: Game Maker
You could have it check for what sprite the enemy currently has, then shoot the right direction.
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Game Maker
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)
What did I do wrong? (I posted screenies so you could see)
_-= Official Noob Label -=_
For those with self esteem like mine =).
- Warriorccc0
- Posts: 92
- Joined: Thu Jun 18, 2009 5:37 am
Re: Game Maker
Well, whats with the brackets in it?
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Game Maker
It gives an error message when you use variables without brackets, doesn't it? Or at least it did before I added the brackets...
_-= Official Noob Label -=_
For those with self esteem like mine =).
- Warriorccc0
- Posts: 92
- Joined: Thu Jun 18, 2009 5:37 am
Re: Game Maker
GM never uses brackets except if its for something like background[0], alarm[1], view_xview[2], etc.
- Jesusfreak
- Posts: 231
- Joined: Mon Jun 08, 2009 1:43 pm
Re: Game Maker
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?
Maybe I arranged the "Chance" variables the wrong way?
_-= Official Noob Label -=_
For those with self esteem like mine =).