dop2000's Recent Forum Activity

  • No problem!

    Or you can do this:

    This means - if sound is playing, stop it. And then play the sound from the beginning.

    (oops, forgot to delete the old line with empty "" tag)

  • Here you go:

    I noticed you never use sub-events in your game. This is a sub-event, it's only executed if the parent event is executed (if Player is on the Floor)

  • Sure, if it's not too big

    my email: <censored>

  • No, it doesn't check if the player is jumping or not, it checks if the sound is playing.

    Again, I don't know how and when you check if the jump is made and decide to play the sound.

    Could you share the screenshot of your entire event where you play you jumping sound?

  • I meant replace your existing action (Audio->Play jumping sound) with those 2 lines.

    This is what you wanted, isn't it?

    [quote:94xz1gbr]Don't play jump-sound if the jump-sound is already playing.

    I didn't see your code and don't know where you play your sound. I'm guessing it's inside some event, maybe On collision with a floor, or On key "Up" pressed. So insert my 2 lines inside that event.

  • KeeghanM

    That's what I was thinking too, but still a bit worried

    I just made a little test - replaced Text object with SpriteFont object in an event (manually in C2), and then compared xml files - sid tag remained the same.

    So yeah, it should be safe to change objects in xml.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Every time you play a sound you can assign a tag to it. So play your jumping sound with tag="jump".

    Before playing check if "jump" sound is already playing and either stop it or don't play new sound.

    Something like this:

        Audio -> Is tag "jump" NOT playing
               Audio -> Play "your jumping sound" (tag "jump")
    [/code:2w96fp6l]
  • KeeghanM thanks for the tip!

    Do you know what the "sid" tag is for in the event sheets XMLs?

    <action id="0" name="Set text" sid="140336039528208" type="GameOverText">[/code:34f6o06t]
    
    I was also thinking about making some bulk changes by editing XML files, but I was worried about this sid tag.. What if it's somehow related to the object which I'm replacing?
  • I also recommend you fixing your animations - crop unused space, make sure origin point is in the same position on all frames, simplify your collision polygons. Your sprites are very small, you don't need complex collision polygons, they are bad for performance.

  • Add this line at the start of layout:

    Player -> Set position to another object -> to CharacterAnimation

    It should be before the Pin!

    And fix Origin image point position for ALL your animations (character, enemy, walking, standing etc.) and for all frames inside these animations.

  • Then you probably need to set the full text with transparent font or something like that. (Setting text invisible won't work, the system will not render it)

    Then Wait 0.01 seconds, measure the text and set the correct bubble size.

    And then erase the text and fill it in again letter by letter with the typewriter effect.

dop2000's avatar

dop2000

Member since 26 May, 2016

Twitter
dop2000 has 247 followers

Connect with dop2000

Trophy Case

  • 8-Year Club
  • Entrepreneur Sold something in the asset store
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Forum Hero Made 1,000 posts in the forums
  • Forum Wizard Made 5,000 posts in the forums
  • Forum Unicorn Made 10,000 posts in the forums
  • x4
    Popular Game One of your games has over 1,000 players
  • x2
    Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • 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
  • Unrelenting Visitor Visited Construct.net 180 days in a row
  • Continuous Visitor Visited Construct.net 365 days in a row
  • RTFM Read the fabulous manual
  • x3
    Quick Draw First 5 people to up-vote a new Construct 3 release
  • x13
    Great Comment One of your comments gets 3 upvotes
  • Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

28/44
How to earn trophies