Rable's Forum Posts

  • mrtumbles

    Thanks for the kind words! Yes it's my art. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> You can see more here if you want : http://store.steampowered.com/app/598490/

    I tried fontsquirrel and it seems to work just fine ! Thanks again !

  • Arima

    Did you manage to get what's in that tutorial to work in order to have the webfont in a game exported with NW.js, when the computer doesn't have internet access? It doesn't seem to work for me.

    If you need more details, I started a thread here. Seems like it's possible with a external tool though.

  • Thanks a lot, as it seems impossible to do the trick with C2, I'll use that tool.

  • Hi everyone,

    I referred to this tutorial to allow my game to be able to use a web font without internet access. For some reason it's not working with NW.js

    My code couldn't be simpler:

    To create diplomatacss.css , I simply went to this page and saved the page, then imported the css file into my project Files folder. Diplomata is a google font.

    The font is obviously not installed on my computer. When deactivating the internet connection and previewing the file or exporting via NW.js, the webfont isn't used.

    What am I doing wrong? :-/

    • Post link icon

    If my calculations are correct, the announcement should happen within the next round(random(30500)) seconds.

  • Hi, thanks for the recent updates.

    I have a problem with my SCML object disappearing as soon as it gets outside of layout (during a layout zoom-in). To be more clear, it's the small scml box object which gets out of layout bounds, but my whole (much bigger) object which disappears, so it is very visible.

    Is there any solution to this?

    Thanks a lot!

  • Maybe you could try this ?

    On animation combo1 finished >> play animation attack1

    I'm afraid the attack1 animation will play even if the button A isn't pressed again.

  • I wouldn't personally use a wait action at event 15. I learned the hard way that in this circumstance, a timer is generally superior.

    Place a timer behavior on your player object.

    replace the condition at event 15 by "Attack1count = 0" (instead of <= 1)

    replace "add 1 to attackcount" by "set attackcount to 1"

    replace the wait action by "start timer for 0.25 seconds"

    delete subtract 1 from attackcount

    add event :

    Player object, On timer --> set Attack1Count to 0

    event 17:

    add condition : Keyboard > on A pressed

    add action : set Attackcount to 2

    Depending if you want to allow the player to spam attack1 after combo1, you may want to add "start timer for 0.25 seconds" (or a different value) at event 17, so that attack 1 couldn't be launched before 0.25 second.

    I don't know if it's clear, I didn't tried it in the editor and I'm not 100% sure that I understand what you want to achieve, but hopefully it'll help.

  • For some reason I can't see the end of your previous comment.

    Anyway, I made a capx for you in case you need it :

    https://www.dropbox.com/sh/5jrefml0l78w ... mqTGa?dl=0

    Just press spacebar to use the recall.

    Here is the image :

  • Ok, thanks for the info and suggestion.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • In the browser object, you have an event "on went offline" and "on went online". Just start a timer when "on went offline" triggers.

  • I would make a bi dimensional array (or 2 arrays, one for X position and one for Y position). Every tick, push front the current X and Y position into the array. If you need to go back 5 seconds in the past, then you'll have 300 (60 tick per second * 5) entries in each array.

    Every tick, delete entries at index > 299 (if you don't need to recall farther than 5 seconds)

    When the ability is used, just load the values at 299 if they exist, or the highest index values if they don't (which means the player didn't played for 5 seconds yet). You probably have to empty the arrays, too.

    If you're unfamiliar with arrays, I strongly recommend reading this : https://www.scirra.com/tutorials/307/ar ... ers/page-1

    Hope it helps! Good luck!

  • Hi everyone,

    I would like to know if it is possible to have multiple collision polygons for a single object. I would like to avoid this :

    As you can see, I started drawing thin lines between elements to separate the different polygons. But it is obviously not very precise as the thin line are still part of one big polygon.

    Another solution would be to have a "perfect" collision polygon, where every pixel is taken into account, and transparent pixels are ignored. But I don't know if this is possible with Construct 2.

    Thanks in advance for any help!

  • Thanks a lot! I actually thought there was a typo, and URI was URL with a low case L... ^^'

    Learned something.

  • Hi everyone,

    I had no trouble taking a screenshot with "take snapshot of canvas" and loading it later in my game, but I'm wondering if this will work (in NW.js) if the user is offline.

    I'm asking this because the manual entry says: "The expression returns a data URI of the image file. This can be loaded in to a Sprite or Tiled Background object via Load image from URL" ( https://www.scirra.com/manual/126/system-expressions )

    In my mind, an URL implies that the user is online, but I may be very wrong.

    Thanks for any help!