dop2000's Recent Forum Activity

  • 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?
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • You can use Tex.TextWidth and Text.TextHeight expressions to get the actual size of text.

    There is one problem with it though - you can't set text and then immediately measure its size. The system needs time to render the text, so you need to wait until the next tick.

    Insert Wait 0.01 between setting the text and changing your bubble sprite size.

  • KingKong1234 The link is broken and also you need to share the CAPX file, not CAPROJ.

    To create CAPX file, save your project as a single file.

    If you can't post full links, try to remove "https://" part of the url.

  • TRMG Creating this data manually keyframe by keyframe would be a really long and boring job and the results may not be very good.

    Why don't you look for a special software that can create simple animations and export them in text format?

    That guy used Adobe Flash, I had some experience with it and it's a great tool for creating animations.

    I watched the video again, he actually exported animations in JSON format, not XML.

    So you'll need to parse JSON strings, I'm sure it's doable and still must be much easier than preparing all animations by hand.

  • If you google "Construct 2 XML", there are quite a few tutorials.

    I assumed you want to use XML files because the guy in the video used it. (at least I think that was XML, not sure)

    You might choose CSV or some other format to store animation. By the way, how are you going to prepare all these animation sequences?

    I personally prefer CSV, there are a few handy plugins by rexrainbow to work with this format. One called CSV2Array, so I'm guessing it can parse CSV directly into the array:

  • Man, no offense, but this is the most terrible project I've ever seen. It's a total mess..

    It's absolutely impossible to figure out what's going on and how is it supposed to work.

    You have 20 sprites and all of them are called "SpriteXX"?

    Layout has 11 layers, most of which consist of just 1 object?

    Variables called "obj" and "src"?

    And your project size is 40Mb?

    I'll try to guess what your problem is.

    You want your animation to stop on frame 16. After that user should click red button and the animation will continue. Is this right?

    Your mistake is that even when you restart animation, it gets stopped again on frame 16.

    Here is one of the ways to fix it:

    The proper way to do it would be splitting your animation in two. After one animation is finished, wait for user to click the button, then start the second animation.

  • I use postimages.org or imgur.com

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