Bug Hunt

0 favourites
From the Asset Store
Tileset for platformer games with jungle, forest, treasure hunt, prehistoric, ethnic, and tribes theme.
  • Ok guys, this is all true, to begin with:

    I have a bug, I know what it is, I don't know 'code' wise why it happens but I understand the logic of why it happens.

    I can't think of a fix, it has been 3 hours and I just can't think of anything, it is so fundamental (and has broken alongside multiple other fundamental smaller changes) that it has to stay (scoring system.)

    How would you go about finding a fix for a bug?

    This is driving me insane.

    Thank you <img src="smileys/smiley18.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • What kind of a bug?

  • Events:

    Zombie> NOT on screen>>>>>>>Destroy Zombie

          > Outside of layout>>>Subtract 1 from (global) Lives (your health)

    __________________________________________________________________________

    This works; however, there is a brief delay (6 seconds) which makes it look.. crap.

    I will post a link in a second.

    shinkan

    Here

  • Well , you could debug ... otherwise , rewrite the script but this time with moar variables

  • I think the reason is that even though the enemies are leaving the screen, they're still inside the outer margins and only die when they hit the margins. You could either set layout margins to (0,0) or make it so enemies die when they are no longer onscreen instead of leaving the layout.

  • Suikama I have followed both guidelines, but to no avail.

    There is still a delay, Whiteclaws I have re-written it, 3 times in fact, but still perhaps not well enough......

    Suikama I can only conclude that my computer/game believes that my monitor is bigger than it actually is! But why it thinks that is another question...

  • Posting a capx would be the quickest solution. Strip it down if you don't want propriety data in it.

    A good debugging too is the ChromeConsole plugin which lets you print debug statements to the console.

  • blackhornet -- I don't quite understand how Construct's compiled data actually works in the 'real world of programming' per-se but I will assume as you suggested that it will work.

    I will try that first and then strip down the cap if it comes to it. Thanks all for your help, check back by half past :)

    Please can you link me? Can't find it.

  • blackhornet would type of thing am I looking for? Never actually gone through proper debugging :S

  • 3rd Party Plugins are listed here:

    construct.net/en

    ChromeConsole:

    construct.net/en

  • The "engine" of your game is quite simple

    destroy outside and subtrack lives.capx

    So there must be some issue in one of your events.

    Without posting your capx file we can only guess where is the problem.

  • shinkan I understand. Your solution was great, until I realised it wouldn't work on mobiles as it is not in full screen mode.

    Turn on "Scale outer" and you end up with them 'dying' too soon.

    My system used to work, until I messed with something else :/ (still no idea what) and that system worked no matter what screen size.

  • Change Is outside layout to (invert)Is on screen.

  • Sulli

    That's why You should post your capx files or give a full description of your issue.

    You never mentioned anything about mobiles or "Scale outer".

    use blackhornet solution

  • blackhornet did that previously. But thank you.

    shinkan apologies, I have been really vague but as mentioned by someone else before I don't really want to post my files.

    I am closer to solving this issue, I believe it is due to some animation, dodgy events and poor event prioritizing.

    Thank you all.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)