Smileh's Recent Forum Activity

  • So I'm making a box system on my platform game. I want to stack ones on top of eachother and whenever you destroy the ones at the bottom the ones sittin on top fall.

    If I use a solid behaviour that doesn't work for my game, because I want to be able to pass through them. If I set platform they just fall regardless if they're sitting on top of other box.

    Is there a proper way to do this? Thank you

  • Place helper objects on the corners ? On overlap .. play ..

    In this post the placing of those helpers is automated.

    That would be a great idea if it wasn't such a pain to place it all over a level, for each level, for each solid.

  • So I want to make an animation to use whenever you're near the edge of a platform, floor, or whatever solid you're sitting on top, kinda like you're lossing your stability. We're talking about a 2D simple platformer.

    The problem is not creating the animation, is the triggers.

    How do I set the triggers for this? Can't come up with proper events to make it happen.

    Thank you!!

  • So I want to make an animation to use whenever you're near the edge of a platform, floor, or whatever solid you're sitting on top, kinda like you're lossing your stability.

    The problem is not creating the animation, is the triggers.

    Do I have to set the player animation to every posible object the player could be on top or is there an easiest way?

    Thank you

  • So I want to make an animation to use whenever you're near the edge of a platform, floor, or whatever solid you're sitting on top, kinda like you're lossing your stability.

    The problem is not creating the animation, is the triggers.

    Do I have to set the player animation to every posible object the player could be on top or is there an easiest way?

    Thank you

  • Make on collision and within an if comparing the Y axis of the block with the Y axis of the character. If the block Y axis is smaller than the character block is then over.

    It can be improved. But this is the basis.

    Thanks. I ended up taking a different approach yesterday. Works so I'm cool with it. Thanks for your help tho, appreciated!

  • Smileh

    Ah, you are right. Please update rex_moveTo behavior again, now it works fine in your test capx.

    Works perfect now. Great work as usual! Thank you so much

  • Update

    rex_moveTo behavior: fix the behavior of "push out solid".

    Smileh

    99Instances2Go

    Please updates that new version of rex_moveTo behavior. Now the sprite will not have x shift when stop by solid. Tested by 99Instances2Go 's sample capx.

    Now it's moving it's X when it gets to the bottom instead of when it gets to the top.

  • rexrainbow 99Instances2Go So what's the approach?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I'm trying to create the mechanics for a dropping block enemy.

    So far I managed to make the player get smashed if it sits on the block and get smashed against the roof, but doing the same approach I can't do it the same for the floor.

    This is an example capx of the blocks: https://www.dropbox.com/s/a9t9qr16v1uyh ... .capx?dl=0

    Basically I have a smashed function that plays an animation, player dies and restars the layout.

    Managed to make it work when smashed against the top like so:

    Player is overlapping BRICKENEMY at offset 0,1

    Player is overlapping Tilemap at offset 0,-1. - Call function Smashed

    It works "OK". The animation keeps looping and if I trigger once it won't play any animation but will restart the layout.

    Can't do the same whenever I want it smashed against the floor. It just doesn't play any animation. I guess in this case I have to call it in a different way.

    I basically need a fix for the animation looping for the "roof smashed" and I guess I need a different way to trigger the floor smashing. Any help so appreciated.

    Thank you!

  • Smileh

    I have no idea, could you provide a very simple capx?

    rexrainbow

    https://www.dropbox.com/s/a9t9qr16v1uyh ... .capx?dl=0

  • rexrainbow

    Hey Rex, another great plugin Im using. I'm encountering an issue with this one tho, let's see if you could help me out.

    I have those events.

    This is kinda like a dropping block from Super Mario. As you can see I just move the sprite's Y BUT whenever reaches the top it moves it's X +3 pixels, so every cycle it keeps getting further to the right. I could stop this by moving it's X to -3 but then it looks really weird.

    Do you know what could be causing this issue? Thank you!

Smileh's avatar

Smileh

Member since 22 Jul, 2015

None one is following Smileh yet!

Connect with Smileh

Trophy Case

  • 9-Year Club
  • Email Verified

Progress

10/44
How to earn trophies