Mosquito Terror

Show us your works in progress and request feedback

Post » Sun Apr 19, 2015 3:44 pm

Don't you hate it too.. You're trying to sleep after an exhausting Day's work and then you hear that sound... first only slightly so you're not sure if you're imagining but you pray that it isn't what you think it is... then it gets louder... Bzzzzzzzzzzzz....

You have two Options: either get up and hunt the little beast or keep on pretending to sleep with the knowledge that sooner or later the sound will stop and you'll feel a sting...

This is pretty much what inspired my first little Game in Construct 2 :) The mechanics are simple: Turn the lights off and sooner or later the Mosquito will come. If you turn the lights back on too soon it will flee... If you turn the lights on too late well... you get the idea ;)

The game runs, i still need to implement a raising difficulty level and currently i'm working on the Animation of the Guy in the Bed. Backgrounds and the Mosquito are pretty much finished though.

Image

Image

Light's on, he's fleeing!

Image

He's getting closer....



Thanks a lot to the great Scirra Community and especially @LittleStain who anwered my Noob Questions in the Forum :D I'll keep you updated...
B
18
S
7
G
2
Posts: 112
Reputation: 2,203

Post » Thu Apr 30, 2015 7:53 pm

Hi Guys...

Well, the Game would be on Track i finished pretty much all the Graphics but i had a Problem with the Mosquito Spawning. Anyways for some Reason, my whole Switch On/Off System is broken now. I disabled all the Code except for the Switch and it still won't work anymore. It worked perfectly all this time, i have no idea whats going on.

Could someone of you have a look at it? Maybe i'm overlooking something. It basically should turn the lights off when you press on the Green Placeholder Square in the bottom right corner...

https://drive.google.com/file/d/0Bwu0b_ ... sp=sharing

THANKS!!!!
B
18
S
7
G
2
Posts: 112
Reputation: 2,203

Post » Thu Apr 30, 2015 10:02 pm

Both sub-events after pressing square will be done because first event change light to off and second sub-event check if its off soo you know... Try removing sub events and make one "On mouse press" and "light = on" and another one "On mouse press" and "light = off"... Hope you get it, my english is bad.
B
9
S
3
G
3
Posts: 36
Reputation: 2,433

Post » Fri May 01, 2015 10:53 am

Thanks for your help @Roal465 No worries about the english, i understand you perfectly fine ;)

I tried what you said but it still doesn't react at all to any clicking. I really don't get it, it worked perfectly fine :/ For some reason it seems to not switch my variables anymore... No idea why that is suddenly...

I updated the CAPX File with your suggested Changes...
B
18
S
7
G
2
Posts: 112
Reputation: 2,203

Post » Fri May 01, 2015 11:11 am

Okay, i managed to get it running again. I had to make Subevents again but instead of comparing Variables two times it had to be an "Else" block with the second subcondition...

Can someone explain to me, why it wouldn't work when i just do it manually instead of adding an Else? What's the real difference there? :) I'm still trying to learn as much as i can, so i'm trying to understand these kind of things... Thanks!!


ANOTHER PROBLEM though: if i turn the switch on and off quickly and then leave it turned off, it spawns multiple Mosquitos. But i always just want to spawn ONE at a time. There should never be more than one active... Any ideas on how to achieve that? I tried trigger once but that obviously doesn't work since its still spawning as soon as the lights are off... The other thing i tried was to make the Spawn Action into a Group and deactivating it as soon as the Mosquito Variable is set to 1. But that doesn't work either... Any help would be greatly appreciated!!
B
18
S
7
G
2
Posts: 112
Reputation: 2,203


Return to Works in Progress/Feedback Requests

Who is online

Users browsing this forum: No registered users and 3 guests