gametechmods

Off-Topic => Games => Game Development => Topic started by: Mouldy on November 14, 2016, 05:58:05 PM

Title: Don't Invade My Space!
Post by: Mouldy on November 14, 2016, 05:58:05 PM
https://gametechmods.com/uploads/files/7620Don't Invade My Space Version 01.zip (https://gametechmods.com/uploads/files/7620Don't Invade My Space Version 01.zip)

A small Space Invaders clone I'm working on just to get into game design/development again.

Right now, the issues are clear and will be easily fixed.

Down the line, I would appreciate you guys if you could give me tips/feedback.
Title: Re: Don't Invade My Space!
Post by: Mouldy on March 10, 2017, 04:35:39 AM
Am still updating this game. Haven't worked on it for a while.

Would appreciate people with some GameMaker knowledge to come forward and give me some tips.

(Will post download link when I'm on my computer)

A problem I'm running into at the moment is that I can't shoot and move at the same time. Can anyone help me with this?
Title: Re: Don't Invade My Space!
Post by: Badger on March 10, 2017, 04:53:42 AM
> game maker
top kek

If you have a sh**-tier keyboard, it might not be able to accept the inputs for firing and moving at the same time. Try moving firing to a mouse button to see if that helps.
Title: Re: Don't Invade My Space!
Post by: Mouldy on March 10, 2017, 05:00:07 AM
> game maker
top kek

If you have a sh**-tier keyboard, it might not be able to accept the inputs for firing and moving at the same time. Try moving firing to a mouse button to see if that helps.

GM is great for 2D games, lad.

Boi- I have a Corsair K60. I shall still try though, just to see.
Title: Re: Don't Invade My Space!
Post by: Mecha on March 10, 2017, 05:19:58 AM
> game maker
top kek
so hardcore xd
Title: Re: Don't Invade My Space!
Post by: Badger on March 10, 2017, 05:50:24 AM
> game maker
top kek
so hardcore xd

Gamemaker is to development what sonic fanfiction is to literature. I'm sure that there are good piece of sonic fanfiction, but you can see my point. I was only joking anyway, as you can see by my >>>meme chevrons<<<

How are you getting user input?
Title: Re: Don't Invade My Space!
Post by: Mecha on March 10, 2017, 06:07:13 AM
> game maker
top kek
so hardcore xd

Gamemaker is to development what sonic fanfiction is to literature. I'm sure that there are good piece of sonic fanfiction, but you can see my point. I was only joking anyway, as you can see by my >>>meme chevrons<<<
eh, you're pretty much right. i was also just kidding around btw
Title: Re: Don't Invade My Space!
Post by: Fracture on March 10, 2017, 07:29:51 AM
GameMaker is popular because it's easy to use and flexible enough for most hobby developers, that's pretty much what you want from a good engine.

Am still updating this game. Haven't worked on it for a while.

Would appreciate people with some GameMaker knowledge to come forward and give me some tips.

(Will post download link when I'm on my computer)

A problem I'm running into at the moment is that I can't shoot and move at the same time. Can anyone help me with this?
Could be that the frame update only recognizes the last keyboard input received, ignoring all previous inputs for that frame. What happens if you hold fire and then tap move?

If you still can't figure it out, sharing your code can't hurt. Though this sounds like something that can be Googled.
Title: Re: Don't Invade My Space!
Post by: Mouldy on March 10, 2017, 04:17:57 PM
(https://gametechmods.com/uploads/images/489361.JPG)
Press Right to go right.


(https://gametechmods.com/uploads/images/368392.JPG)
Left to go left.

(https://gametechmods.com/uploads/images/496023.JPG)
Press Space which first asks if "canfire" is set to 1 (which is set by default to 1 when P1 is spawned). If it is, then a bullet is created above it, once that's done, it lowers the canfire value to 0 and then Alarm 0 is set for 10 steps.

(https://gametechmods.com/uploads/images/520414.JPG)
When that alarm goes off, canfire is set back to 1.

Any ideas?
Title: Re: Don't Invade My Space!
Post by: Tashic on March 10, 2017, 05:19:05 PM
BOI game maker, using the blocks even! Memories...
Anyways did you have the same problem with the version you posted in the first post?
It fires and moves at the same time there for me.
Title: Re: Don't Invade My Space!
Post by: Mouldy on March 10, 2017, 05:29:11 PM
BOI game maker, using the blocks even! Memories...
Anyways did you have the same problem with the version you posted in the first post?
It fires and moves at the same time there for me.

Yeah, still the same problem.

https://youtu.be/LdSpouJo2V0 (The video is still uploading. Give it 20 minutes and then come back)

Okay, let me explain it better as I've realised the problem;

If the alarm doesn't go off before I press fire again, it resets it the alarm. There's probably a very easy way to sort this.
Title: Re: Don't Invade My Space!
Post by: Tashic on March 10, 2017, 05:34:24 PM
Make a big block for all the instructions for the space bar and use the if instruction before it where you check if canfire is equal to 1.
This way if it's still 0 it won't do the instructions in the block again until the alarm resets canfire to 1.

edit: something like this
(https://gametechmods.com/uploads/images/21939Cattura.PNG)
Title: Re: Don't Invade My Space!
Post by: Mouldy on March 11, 2017, 04:09:03 PM
Make a big block for all the instructions for the space bar and use the if instruction before it where you check if canfire is equal to 1.
This way if it's still 0 it won't do the instructions in the block again until the alarm resets canfire to 1.

edit: something like this
(https://gametechmods.com/uploads/images/21939Cattura.PNG)

Oh my God, you got it. Thanks, lad :D
Title: Re: Don't Invade My Space!
Post by: Mouldy on March 15, 2017, 04:43:53 AM
https://www.youtube.com/watch?v=GOjOGHLOpLU

New version.