joelmayer's Recent Forum Activity

  • Hi All

    I'm still working on my Mosquito Game and have the following Problem:

    When i turn the Light off, i want it to spawn one Mosquito in a certain Timeframe. Now, it seems to work but if i turn on and off the lights quickly a few times and then leave it off, it spawns multiple Objects for some reason that i'm too stupid to yet comprehend...

    It would be fantastic, if somebody could take a look at it: https://drive.google.com/file/d/0Bwu0b_ ... sp=sharing

    Thanks so much!!

  • 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!!

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

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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!!!!

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

    Light's on, he's fleeing!

    He's getting closer....

    Thanks a lot to the great Scirra Community and especially LittleStain who anwered my Noob Questions in the Forum I'll keep you updated...

  • Thanks a ton! It seems i have the right ideas but kinda get the orders wrong quite often... i'll pay attention to that a bit more Thanks again!

  • Okaaay i'm back again. The basic functionality works although i'm having a new Problem with the Spawning of the Mosquito.

    I included a Wait Random Conditionq that should only happen when the Light is off, which works. If i switch the Light on and off multiple times though before the Object has been spawned, i get a whole Army of Mosquitos flying.... I only want this to happen ONCE and never have more than one Mosquito going on...

    I updated the Capx File too... I think i'm at the End of my Knowledge here, maybe there's a better way to do this :S

    Any help is greatly appreciated!!!

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

  • I just found the Error and i'm officially an Idiot haha.

    I set the On Nose Variable as an Instance on the Mosquito... Which is of course pointless if i'm destroying it duh... Now i set the Variable as a Global again and it works

    THANKS!!!!!

  • I think i'm too stupid... I tried every possible Combination including the one you told me but it still won't work...

    Sometimes its kinda confusing for me to know when to use Subevents and when to use normal Events. Another little Bug i encountered is, that my Mosquito Trigger Spawnsnew Sprites everytime i turn on the Light. When i set another Condition for either a Variable or that the Mosquito must be OffScreen it doesn't work either...

    It's pretty hard to explain so i also attached my capx File if anyone cares to take a look at it. Sorry for the crappy Graphics, i'm only prototyping

    https://drive.google.com/file/d/0Bwu0b_8ZTavBdlNYcFcxQXNPMmM/view?usp=sharing

    And here's my complete Event Sheet...

    As well as how this whole thing looks... The red Stripe on the right is the Trigger that makes the Mosquito sit on the Nose. The Timer only started working after i put it under the "On Collision" Event with this Trigger which maybe makes sense though...

  • Hm, weird. I think i did everything correctly and the Light On works great now but after the three Seconds expire nothing happens... I tried around with taking out the "Trigger Once" Condition but it doesnt seem to make a difference...

    Any Ideas?

  • Thank you! I wasn't familiar with Timers yet. I'll go over the books again but i'm sure it'll work out

  • Hi Everyone!

    So i'm working on a little Game and here's the situation:

    I'm having a Variable that if turned on initiates a Wait Action of three Seconds. If the three Seconds are up, another Action should happen but if the Player reacts DURING the three Seconds, again, another Action will happen.

    I kinda got it working with Subevents, but the Problem is, when i take the Action, the Game will still wait until the three Seconds are up to change my Animation Frame etc.

    Maybe to make things clearer: the Game is about a Guy trying to sleep but being tormented by a Mosquito. You only hear it in the Dark and if it sits on your Nose and you don't react quickly enough, you get stung. So the player has to turn on the Light in Time Everything works great so far, except the Timing bit, where you have to turn on the Light during the short Timeframe that the Insect is on Contact with you.

    So the Event basically sais: if the Mosquito Variable is onNose, the System is to Wait for three Seconds. If the Player switches the Light "On", the winning Animation is played and the Layout restarts. If the Player doesn't react, the losing Frame is set and the Night Layer is disabled and the Lightswitch is turned on. You then see the Losing frame for three Seconds and the Layout restarts... Hope that makes kinda Sense :S

    Thanks for your help

joelmayer's avatar

joelmayer

Early Adopter

Member since 22 Aug, 2014

Twitter
joelmayer has 2 followers

Connect with joelmayer

Trophy Case

  • 10-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

15/44
How to earn trophies