mikehive's Recent Forum Activity

  • The reason for the enemy's rapid movement is sub-pixel positioning.

    When the enemy hits the player's X coordinate - let's say 500 - it doesn't stop EXACTLY on the 500th pixel and might stop at, say, 500.27546373 or something. This causes it to think that it is to the right of the player, so it will start to move left, at which point it will stop at 499.37383926 for example. Then, it thinks it is to the left of the player... and repeat... :)

  • Actually no - if I set the loader to Nothing, my exported nw.js app sits on a black screen for several seconds, then shows the custom loader for a split second, and then loads the game :(

    EDIT: This would make me think that the loader layout might be too big, but I designed it to be as small and efficient as possible - it contains 9 events and less than 16kb of image data. So... why doesn't it show up properly?

  • Yes, I've been fiddling about with c2runtime.js to see what custom effects I can do all evening... I've figured out how to customise or remove the loader bar, change the display size and font of the percentage text (although I haven't figured out how to use a unique, non-web-safe font), and implement a custom (static) splash screen...

    Anybody know how to do anything even better?!

    EDIT: I got all excited for a minute when I thought I might be able to replace the C2 loader logo with an animated GIF! I replaced it, but the gif doesn't animate. Poooo. Anyone know why??

  • Loader layouts are just for preloading assets, and the preloader(the one with the bar), is for associated script loading. Since its all available to load locally you won't see them much anyway.

    Thanks for the reply! Ah, but with even a medium-sized C2 game you do end up seeing the default loader for several seconds as I described. I'm not looking for a way to load between layouts - I want to beautify that initial load. Any ideas?

  • Right. I'm aware that I can't use a custom loader layout for a game that gets exported as a nw.js app (I discovered this after spending ages making a nice one, grrr). The exported nw.js app shows the default C2 loading bar for several seconds instead, THEN goes to the custom screen for a split second, and then loads the game proper.

    I'm aware that I can change the image and the loading bar colour on the C2 loading screen, but is that really all I can do? Are there any more options for nw.js games? I'd really like a nice, classy loading screen for my game, and it seems like I'm just stuck with variations on the Construct 2 defaults. Am I missing something?

    Seriously, what can I change? If I set the loader to display percentage only... can I do any CSS stuff to change the look of that text? ANY ideas for ways I can customise my loader would be really helpful, thank you :)

  • Sorry to bump this thread, but matpow2, I emailed you over a week ago and haven't had a reply. This is potentially a paid job if you want it?

  • What about setting a variable to the value of object.count at level start and decreasing it by 1 every time an object is destroyed? That counter hits 0, you know the last one was destroyed.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • A simpler method might be to simply turn the troll invisible and disable his movement and logic. He will appear "destroyed" and "respawned" but really you're just hiding and later re-enabling him (allowing him to retain his UID)

  • Well, you could do: tokencount(String,"_")-1

  • Sorry to bump this old thread one last time, but I promise I'm doing it for a good reason...

    I'm aware that people land on this thread from Google searches a lot and I get asked questions about this problem all the time. As such, I thought it would be helpful to write up a full blog post with a detailed solution for anybody else who is having this issue - looks like the explanation I posted above has been removed.

    Construct 2 Text typing and word wrap tutorial: http://mikelaraman.com/construct-2-text-typing-and-word-wrap-tutorial/

    Hope it helps! This topic can now officially die ;)

  • > Every time I try to google a C2 question, I get useful-looking forum posts from the old board that I can't actually access and I get redirected to the C3 board index. Tom, please tell me you're going to make all the old posts accessible? Half of the reason C2 is so great is because of the community support, please don't wipe all the old content??

    This should be fixed although some links wont work until we fix the 404 issue on our website.

    Nope, still happens for me. Every old forum link just kicks me out at construct.net/forum - unless that's how your 404 is handled??

  • Every time I try to google a C2 question, I get useful-looking forum posts from the old board that I can't actually access and I get redirected to the C3 board index. Tom, please tell me you're going to make all the old posts accessible? Half of the reason C2 is so great is because of the community support, please don't wipe all the old content??

mikehive's avatar

mikehive

Member since 13 Jul, 2015

Twitter
mikehive has 2 followers

Connect with mikehive

Trophy Case

  • 9-Year Club
  • x4
    Great Comment One of your comments gets 3 upvotes
  • Email Verified

Progress

11/44
How to earn trophies