Aquanex2's Recent Forum Activity

  • You can try adding another condition to event 806: Enemy Health>0

    If this doesn't help, add some debug output to event 801, for example Browser->Log "Collision:" & Enemy.UID

    This will tell you how many times the collision happens. It may be possible that when you apply vertical velocity, player collides with the enemy again, or maybe your enemy has some weirdly shaped collision polygon.

    I tried this. Did not work. The hitbox is a normal square, so I think it is because of the vertical velocity being too fast. The enemy moves around in a circle, so when it is moving upward this is probably causing collision issues when the player is falling downward.

  • To aid assistance and avoid pointless guesswork, please consider providing the project as a single file. It is always the fastest way to a resolution.

    I have actually made a small capx for problems I've had in the past, but this was the quickest thing I could do. My project is just getting too big.

  • if you are using C2 250 try run the game in a different browser and see if the play still die.

    I had a problem like that the code was ok but in chrome it act strange then i change to edge it works then i close all broswer and C2 open back up and all working ok.

    But just double check your code if all still look ok try the above.

    Just tried that to no avail. If you come up with anything else, don't hesitate to shoot it at me. I'll keep trying things.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • So I have this weird issue on my platforming game. It's a very large project so I can't really provide a capx. I have several enemies in my game, but one enemy in particular is giving me issues. You jump on the enemy to damage it. The code for it is exactly the same as the other enemies.

    Here's a picture:

    https://www.dropbox.com/s/36zv2isvjjdpu ... n.png?dl=0

    Everything is normal until you kill him. For some reason, at the moment you kill him, you take damage, which doesn't make sense since it gets destroyed. I feel like this has happened once before, but I'm not sure how I fixed it.

    Any ideas? <img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question"> <img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question"> <img src="{SMILIES_PATH}/icon_question.gif" alt=":?:" title="Question">

  • Video is not available

    Do you still need help with this, because I can help you.

  • Wasn't c2 autosaving for you along the way? Have you tried to load that?

    Sucks mate, that has almost happened to me before. I know its not the best time to say but saving regularly to different files is good practice.

    Sorry for super late reply. This happened to both the autosave and the backup that were created by c2. It's crazy! But I think I can recover from this.

    Edit: Also it wasn't just the Texture folder. It was also the Animations, and Files folders

  • I create backups frequently because I never know when something unexpected will occur.

    I guess you can just redo it all, and make it better now that you have the foresight.

    If this is my only option it's gonna SUCK! I hate my life

  • 3 MONTHS OF PROGRESS DOWN THE DRAIN!!! I made a back up a while ago BUT THAT'S SO MUCH WASTED TIME!!!! WHY DID THIS HAPPEN I'M SO CONFUSED I JUST WORKED ON IT YESTERDAY!!!

  • Can you disable solid behaviour for the object when you detect that it's actually crushing the player?

    You can set a boolean instance variable for the player perhaps, and when they're being "crushed" then disable solid on the crusher - and use other events to control the position/size of the player to control the crush "mechanic".

    I guess it's a little difficult to make a suggestion without seeing how your current mechanics are working, and what you're wanting to achieve cosmetically.

    ~Sol

    Sorry it took me so long to respond... This sounds like a great idea. In my game you pretty much just explode once you're crushed, so you don't really look crushed or anything. This will work just fine.

  • Maybe just change the object event, make it so when the crusher is in collision with the player, the player to die, and add a Crushed animation to the player. You can also delay the crush death by adding a wait condition in the action like 0.2 sec, and before that disable the player movement so it looks more real.

    "make it so when the crusher is in collision with the player, the player to die" - If I did that then the player would die once they touched it, which isn't what I want. I just don't want the player to be moved by the crusher.

  • In my game, the player has a platform behaviour. Because of this, moving solid objects push the player out of the way. I have crushing blocks that kill the player, that work for the most part, but sometimes pushes you out of the way instead of crushing you. Is there a way to stop it? If not, then it's fine.

  • Aquanex2

    I see what you mean now

    See if this one can help you, works with the collision box you like and without the solid behavior like you wanna. That is the only thing I can think today, maybe some else can find a better Idea

    Capx:

    https://www.dropbox.com/s/679sgoivdvste5i/Weird%20Collisions2.capx?dl=0

    I just got off work and took a look at this. What a great idea! it'll take a while to change all of my events in my game, but it'll be worth it. I'll do this soon! Thanks!

Aquanex2's avatar

Aquanex2

Member since 19 Nov, 2014

None one is following Aquanex2 yet!

Connect with Aquanex2

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • RTFM Read the fabulous manual
  • Email Verified

Progress

12/44
How to earn trophies