producermark's Recent Forum Activity

  • Ashley Tom

    As you probably have already thought of ......

    would be to limit the number of tutorials any member can make to one a day,

    and don't let newbies post tutorials at all for the first 2 weeks.

    and do a similar thing thing with forum posts, ie: limit forum posts to 2 a day for newbies.

    that would at least limit the mop up after turds like this do stupid stuff.

    Anyway, good luck

    In the meantime I am turning off notifications ....

  • before posting please try searching the tutorials and forum first to see if there is an answer.

    Thanks

    https://www.scirra.com/tutorials/449/cr ... -healthbar

    AND

    please only post your questions ONCE,

    you need to allow at least 24 hours for someone to respond

    as this forum is world wide.

  • " is there anything special going on with bigger sprites ?"

    did you try reducing the size of the sprite?

    but

    I doubt that's it.

    I don't know how crowded and cluttered your capx is but when I run into a problem I can't easily

    figure out, I open up a fresh capx and recreate the 'problem code' to isolate it, and see if it happens again.

    So,

    maybe do a test on a fresh capx?

  • from the tut https://www.scirra.com/tutorials/236/us ... ect/page-1

    there may be a workaround for you;

    Loading time for web fonts

    A problem with web fonts is since they are downloaded, there may be a second or so delay before the font is ready to be used. Meanwhile the browser will either display a different font, or nothing at all. This can make the text appear to momentarily flicker.

    The good news is the font is cached so next time it should load almost instantly - there's only a delay the first time the font is downloaded.

    However, you can work around this by loading all web fonts on startup. For each web font you use in a project, add a text object to your first layout and use the Set web font action to load it. Make the text hidden so it's never seen - it's just loading the web font. Splash screens or title screens are ideal for this. If your splash or title screens use a web font, you might want to use an image there instead, or introduce a second or two delay to give the fonts a chance to load. Then, nobody should ever see the text before the fonts have loaded.

    That's all there is to it - have fun using your fonts!

    You may also be interested in the tutorial How to use your own web fonts by Przemek32767.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • what do you have the sprites doing in the event sheet?

    can you provide images or capx?

  • Please contact me.

  • oh,

    Just a quick reminder to those looking at this forum post ( cause I actually forgot after I tried to test the code)....

    Per the manual:

    Random(N) - Returns a random number between 0 and N, not including N

    so in the above example,

    to exclude frame 20

    the code would actually need to be

    choose(int(random(0,20)),int(random(21,39)))

  • thanks for answering

  • korbaach

    Thanks for the answer.

    correct me if I am wrong but I think you meant

    choose(int(random(0,19)),int(random(21,39)))

    just so people visiting this topic don't get confused

  • per korbaach

    solution is:

    choose(int(random(0,20)),int(random(21,39)))

    The original question was:

    So I know how to ::

    choose(0,1,2,3,4,5,6,7,8) to select a certain frame number

    and I know how to

    int(random(0,39)) to randomly select a whole number between 0 and 38.

    but what if I wanted to

    randomly select a frame number between 2 different ranges?

    for example:

    I have 40 frames, and I want to NOT select one of them;

    for example frame 20

    I could do

    choose(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39)

    but this seems pretty long and time consuming if I had multiple events doing the same thing with a different number, so I was hoping that there was a way to

    do something like this:

    choose(0thru19&21thru39)

    int(random(0,19)&(21,39))

    but these don't work.

    Anyone know a solution?

    is there one?

    -

    -

    -

    per korbaach

    solution is:

    choose(int(random(0,19)),int(random(21,39)))

  • This really should be a tutorial PhoenixNightly

producermark's avatar

producermark

Member since 9 Sep, 2013

None one is following producermark yet!

Trophy Case

  • 11-Year Club
  • x6
    Coach One of your tutorials has over 1,000 readers
  • Email Verified

Progress

13/44
How to earn trophies