NoobGameDev.exe's Forum Posts

  • > Ah of course, why didn't I think of that. Thank you for the advice and also thank you for including an example capx.

    >

    Anytime, mate :)

    I was trying to apply your example to this demo and I am getting some weird bugs.. I'm probably not doing it right <img src="smileys/smiley5.gif" border="0" align="middle">.. I'm also trying to put the bad guys into a Family (will create more characters later) and I think that is what is causing the issues.

    Issues:

    1. When an enemy is created, the collider does not follow the enemy properly

    2. Sometimes you can land on the head of the enemy and no damage is done... you just ride the enemy

    3. All enemies die when an enemy is killed (not sure how to specify only to kill the enemy that was stomped on)

    Here is the capx I am working on:

    https://www.dropbox.com/s/f38avjx9f0nbuuf/A2.capx

    Any suggestions or advice is appreciated.

    Meanwhile I will read up more on Families and such. I still have a lot to learn.

  • Mmm, what about making an invisible collider pinned on top of each enemy? Just a small sprite about half as wide as enemy. That should fix the "falling on side" issue.

    Actually, here's a capx

    Ah of course, why didn't I think of that. Thank you for the advice and also thank you for including an example capx.

    I did it by pinning a collision box on start of layout to the feet of the player. Then have that set where if it collides with the enemy it will destroy it. Once I am done with what I am doing I will post the capx for everyone would love some feedback on my first game.

    I'm curious if that method will still allow you to kill the enemy if you fall on the side of the enemy because the feet of the player can still touch the side of the enemy as you are falling if the enemy is big enough.

  • > awesome8x, that's one way of doing it, but the other way saves you having to create and position those 'detector' objects.

    The benefit though is that the detector method allows you to have the enemy killed only at the point you desire. For instance many times you may be above the enemy but still hitting a part of the enemy that should hurt you (in this case, touching the side of the Goomba's face while you're falling should hurt you and not kill the Goomba).

    Agreed, this method makes more sense to avoid allowing the player to kill the enemy when landing on the side of the enemy.

    How would this be applied to multiple enemies though?

    Awesome8x suggested recreating the events for each enemy, but i'm not sure how I would go about that in a game where the enemies are constantly spawning.

  • Akoji, were you able to get so that the enemy dies only when you land on top and not land on the side? I'm having difficulty making it so that only when you land ON TOP of the enemy does the enemy die. If you fall on the side of the enemy it should hurt you, at least when trying to replicate a Mario game. I don't follow how the invisible object for damage resolved the issue when landing on the side of an enemy..

    Assuming you're using the platform behaviour just create a normal destroy on collision event and add the conditional "isFalling".

    That allows you to fall on the side of the enemy to kill it (in other words, this method will not require you to hit the TOP of the enemy), which does not match with Mario games since in those games you die if you hit the side of Goomba instead of the top.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    I wanted to test out how this plugin would work so I opened up the Infinite Jumping template and applied the ad object. The ad appears properly when I test the game on a mobile device, but the ad does not appear correctly when testing on the web browser. When I test on the web browser the ad appears around the bottom of the game, but I placed the ad object at the top.

    Please see images below:

    <img src="http://imageshack.us/a/img407/6907/issue1.png" border="0" />

    <img src="http://imageshack.us/a/img607/6372/issue2.png" border="0" />

    Is anyone else experiencing similar issue?

    To recreate the issue simply open the infinite jumping template and apply the ad object.

    Maybe I am doing something wrong?

    Other than this issue, I would like to say thanks for making such a simple ad plugin.

    Edit:

    And here is how it looks like on Newgrounds.com Preview

    <img src="http://img5.imageshack.us/img5/8430/issue3j.png" border="0" />

    I'm not sure why I can't get the ad to be in the right spot regardless of where the game is being played...

  • This is crazy fun, and it's awesome that you provide the capx <img src="smileys/smiley1.gif" border="0" align="middle" />

    I'm still too much of a noob to understand it all but I look forward to studying how it all comes together.

    Thanks