Pigpud's Recent Forum Activity

  • I'm making a game that has NPC's in it that can talk to the player.

    What I have coded is that when the player in overlapping the NPC and presses a key, a dialogue box pops up with some typewriter text.

    Now if the user wants to skip the typewriter text, they press the key which will then finish the text.

    Now the text that is finished will stay visible until the player presses the key again, this time the dialogue box disappears with the text.

    The only problem being that the dialogue box just disappears after the first time the key is pressed instead of finishing the text and waiting for another key press to close the dialogue box.

    Now I also have a code that says if the player lets the text run and when the text is finished, if the key is pressed it will close the dialogue box.

    To me this seems like a really easy thing to code, but I can't figure out what is going wrong. I made a test project to find out the answer before applying it my my real one.

  • In the platformer behavior properties, there is a check box for "default controls" unselect that and you're good to go.

  • Here's what you do: Have two sprites: one with a platform behavior called Platform sprite and one with all of your animations called Mask sprite.

    System every tick,

    Then in the action add:

    Mask sprite set position to Platform sprite.

    If you want to have a separate sprite for your camera, you just add another sprite with the scroll to behavior and follow the same code above. The platform sprite will ensure that your sprite collision box stays the same and will prevent your sprite from "falling" hope this helps!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is a game I've been working for some time.

    It's a 16 bit adventure platformer.

  • You do not have permission to view this post

  • You do not have permission to view this post

  • Hello! I'm newish to construct, but this is what I would do: have an object that is centered to your viewport spawn them on the start of the layout. That way you have their position the same every layout. I don't know if this is your issue but I hope it helps!

  • Guinea Pig Parkour is a great example.

  • Thanks So much ! It works Great!

  • Okay, I'll give it a try! Thanks!

  • Hello,

    I am making a platformer with some boxes that I want to have destroyed if the player is doing a special move while falling. It seems really simple but I'm having trouble for some reason getting it to work. I have a solid box and a collision sprite positioned on top of the box. I am also using instance variables to check if the box can be destroyed:

    Player: on collision with Box Collision Sprite and Box collision sprite variable is 0, player is falling, and player animation down attack is playing, add 1 to box collision sprite variable.

    In another event:

    Box collision sprite variable equals 1, Box set animation 2. Animation 2 is of the box is exploding.

    In another event: Box on animation 2 finished set solid disabled and destroy the Box and the Box collision sprite.

    Comparing Y doesn't seem to do anything as well. When I preview the project the code works in a way, the animation plays but all of the boxes get destroyed when I just do the attack on one box. What am I doing wrong, or is this a bug? Thanks!

  • I just found the same problem with a box sprite with a solid behavior added to it. It's really frustrating. Is there some way to simulate a solid behavior?

Pigpud's avatar

Pigpud

Member since 29 Mar, 2023

Twitter
Pigpud has 3 followers

Trophy Case

  • 1-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
  • Steady Visitor Visited Construct.net 30 days in a row
  • Enduring Visitor Visited Construct.net 90 days in a row
  • RTFM Read the fabulous manual
  • Quick Draw First 5 people to up-vote a new Construct 3 release
  • x2
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

10/44
How to earn trophies