aronduby's Forum Posts

  • 7 posts
  • Ah, I see. Thanks for the thorough explanation and the static fix. Still working on shifting my head from vanilla JS to this setup.

    Thanks for the awesome program!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I feel like I'm missing something really simple, but how do I get the letters to only show when they are overlapping the green? I've checked out the examples, I've searched through the forum, and I just can't figure it out. I feel like I'm taking crazy pills!

    Ok, so I figured out that if I put the mask (green sprite) on a layer above and set that layer to blend destination in that works for the letters, but it also crops everything below that layer including background and anything else that happens to be there, which is no good.

  • I am running into this right now and it is breaking things for me. Ashley I have submitted a minimal repro as a bug report at

  • Problem Description

    Using a timer to edit local variable works once but then repeat calls fails with the "Check: local var stack not big enough" message in the console. Seems to work if I make the variables global instead of local.

    Attach a Capx

    dl.dropboxusercontent.com/u/71308871/c2-timer-local-variable/timerlocalvariable.capx

    Description of Capx

    A sprite has a Timer behavior that decrements a local variable and updates it's display in a text box every second.

    Steps to Reproduce Bug

    • Preview project

    Observed Result

    Runs properly once, but further calls show message in the console

    Expected Result

    Variable gets decremented and text gets updated

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES/NO)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    Windows 10

    Construct 2 Version ID

    Release 216 (64-bit)

  • Figured I would share what I wound up with after looking into it a bit more. I'm not sure how it performs compared to the others, but it's working well for my use I guess.I have a one-liner javascript call that I use when I need to do this for websites, so I used the Construct Browser.ExecJS to it.

    dl.dropboxusercontent.com/u/71308871/c2-formatnumber/FormatNumber.caproj

    Browser.ExecJS("parseInt(" & Function.Param(0) & ", 10).toFixed(2).replace(/(\d)(?=(\d{3})+\.)/g, '$1,').replace('.00','');")[/code:2onwbtac]
    
    The regex in there requires a decimal, hence the toFixed. My usage is usually with whole numbers so I remove the addition of the decimal points at the end with the additional replace('.00','') call.
  • I gotta agree with rtom, there's some things that seem like they need tweaking.

    In my instance I was able to create a new tutorial which covered fixing issues and expanding on things from an older tutorial that no longer worked. The content was to long to post as a comment in the original, hence creating a whole new one. I got it all written and posted and then went back to the original to add a link to my new one in the comments, only to have the link removed since I didn't have 500 rep. Seems like if I can't post links in comments I shouldn't be able to post whole tutorials, and vice-versa.

  • I just wrote my first tutorial and have some feedback.

    Right off the bat I noticed the editor was generating what appeared to be Markdown "code", and was pretty happy because that meant I could easily write and do basic previews in my code editor, while saving a copy just in case (I've learned this lesson the hard way too many times in the past). So that was awesome. However not so awesome was when I learned that if it is indeed Markdown, it's a heavily modified version. There were 3 areas that stuck out negatively for me.

    Headings

    I definitely get not having additional h1s on the page, but within the editor the h1 button inserts markup for an h2, and then the h2 button actually inserts the markup for an h1, which then later gets rendered as an h3. It felt odd and inconsistent to me. I feel like it would be better if the markup for headings was the same, and then in the custom render you kick everything up a number. That way #Heading 1# gets rendered as an h2, ##Heading 2## gets rendered as an h3, etc. Everything is consistent in the editor, matches regular markdown syntax, but still shows correctly.

    There's also some funkiness with h3's. I can enter ###Heading 3### all day long and it renders right in the tutorial and the preview, but the table of contents shows the h3 and a p tag as text.

    H4's don't have a renderer. Most tutorials probably don't go that far, but it was surprising when mine did and I got a h3 surronded by #'s.

    Code

    I would like to suggest using GitHub flavored markdown for code. That allows for using ``` to fence in code blocks, and is sooooo much easier than the 3 or 4 spaces used by default within markdown. My tutorial included a lot of javascript to include on the page and to use as execute javascript actions, so it was kind of a pain, but a pain felt all over with regular markdown.

    Page Breaks

    This one is less of a pain, but instead of converting a bunch of = into a page break I feel like it would be more intuitive to override markdown's hr renderer, which is 3 or more - or _.

    Thanks for the awesome application, and the great community with tutorials and forums, they've been a life saver just starting off with this!

  • 7 posts