Author Topic: Don't Invade My Space!  (Read 2751 times)

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Don't Invade My Space!
« on: November 14, 2016, 05:58:05 PM »
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.

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Re: Don't Invade My Space!
« Reply #1 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?

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6318
  • Rep: 3
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Don't Invade My Space!
« Reply #2 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.
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Re: Don't Invade My Space!
« Reply #3 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.

Offline Mecha

  • Ultra Heavyweight
  • Posts: 2140
  • Rep: 7
    • View Profile
    • Awards
Re: Don't Invade My Space!
« Reply #4 on: March 10, 2017, 05:19:58 AM »
> game maker
top kek
so hardcore xd

Offline Badger

  • Permanent Artifact
  • Giga Heavyweight
  • Posts: 6318
  • Rep: 3
  • I wish to be with my people
  • Awards BOTM Winner Donated money for site hosting 2019
    • View Profile
    • Awards
Re: Don't Invade My Space!
« Reply #5 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?
also lol at most toxic guy around calling others out on this sh**
Google Drive with my newer bots

Offline Mecha

  • Ultra Heavyweight
  • Posts: 2140
  • Rep: 7
    • View Profile
    • Awards
Re: Don't Invade My Space!
« Reply #6 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

Offline Fracture

  • Super Mega Hyper Giga
  • Ultra Heavyweight
  • Posts: 1506
  • Rep: 11
  • how about i shove my big dog up your hanky panky
  • Awards GTMCS2 Divison Winner BOTM Winner
    • View Profile
    • Awards
Re: Don't Invade My Space!
« Reply #7 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.

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Re: Don't Invade My Space!
« Reply #8 on: March 10, 2017, 04:17:57 PM »

Press Right to go right.



Left to go left.


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.


When that alarm goes off, canfire is set back to 1.

Any ideas?

Offline Tashic

Re: Don't Invade My Space!
« Reply #9 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.

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Re: Don't Invade My Space!
« Reply #10 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.

(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.

Offline Tashic

Re: Don't Invade My Space!
« Reply #11 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

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Re: Don't Invade My Space!
« Reply #12 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
(Image removed from quote.)

Oh my God, you got it. Thanks, lad :D

Offline Mouldy

  • Super Heavyweight
  • Posts: 1150
  • Rep: 4
  • Still can't make robots after 20 years.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Discord: Mr.Kinch
Re: Don't Invade My Space!
« Reply #13 on: March 15, 2017, 04:43:53 AM »


New version.