ome6a1717's Recent Forum Activity

  • I'm trying to pre-load a web font using a stylesheet. It works, but I get a delay when its trying to set the webfont (which is strange since it's loaded INTO the game...).

    Anyway, I've made a splash screen and put my UI text elements off-screen and set "on start of layout" set web font to stylesheet for each text object. The problem is, when I go to the screen that has the actual UI, it still has a delay loading the web font.

    What am I doing wrong here?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • sqiddster - I'm so glad I'm not the only one having this issue!!

    Eliyahna - the thing is that it's completely random and I'm almost sure it's unrelated to a code error. Each time it happened, something different was affected. Once I release the demo, if there are still issues I might just have to recreate the whole project by copy/pasting everything. Not fun.

  • eli0s - how do no one else reply with this?! Thanks, eli0s.

  • Eliyahna - this is what I'm afraid of. Stupid question; if I were to cut every part of the code and re-paste it into itself, do you think it would fix the issue? I'm getting close to being able to put the demo online, so at the very least I can have you guys play test it.

    In the very worst case scenario, will I need to start a new project and copy/paste everything from the corrupt project to the new one?

  • Eliyahna - would you see the rewritten code, though? As in something I can find if I were to sift through my code again? I'll have to check, but that still doesn't explain things disappearing that don't even have codes to them.

  • LittleStain - The capx is too large, but I will be releasing a demo hopefully within a few days here.

    - They set themselves invisible. I know this because a couple of the objects are enemies that shoot other objects based on image points, and the enemies are still shooting objects at the correct location while being invisible (and also take damage).

    Paradox - Also, if this were the case, it would be happening everytime.

    Thanks for the responses guys - I'm incredibly confused. Half the time I test my game everything is fine and dandy.

  • I'm not sure if this is a bug, and if it is I cannot, for the life of me, figure out how to reproduce it.

    Randomly when I'm playing my game, "something" will happen that sets off a sequence of strange random events. Most notably random sprites will set themselves invisible (some of these objects don't even have a single line of code to them). Sometimes items that should be destroyed at the end of the animation aren't.

    I know it sounds like a code issue, but I've checked all the areas that effect visibility and object destruction and nothing seems to tie together. Whenever this happens, it's never the same objects every time, either.

    I know this information isn't helpful at all, but has anyone experienced any weird issues lately? I want to say it's since r143 but I can't be sure.

  • Thanks!

  • That's how events work.

    First of all, your link doesn't work.

    Then, events will trigger and their action will apply EVERY TIME their condition is true.

    If you check if the value of a global variable is 0, it will check it every tick. And every tick its condition is true, its action will be applied.

    In that case, use this variable only for this case (don't change its value anywhere else in the code) and simply make the first action of the event to modify the value from 0 to 1.

    This way, it will not execute again.

    Also beware if you reset global variable, then this event will trigger again.

    Kyatric - Thanks! Adding another global variable helped fix the problem. Although I've also updated the capx for you to see what I was referring to.

  • Shameless bump.

  • REPOST CAPX

    This is what I'm talking about. If you left click to increase the variable, when switching layout, it's triggering the variable event even though the variable isn't changing.

  • ErekT - thanks for this information. It's very helpful. Is this to say it's impossible for a feature like this in html? Or it just hasn't been implemented yet?

ome6a1717's avatar

ome6a1717

Member since 12 Feb, 2013

Twitter
ome6a1717 has 3 followers

Trophy Case

  • 11-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

13/44
How to earn trophies