CloveltOc's Forum Posts

  • Hey R0J0hound , seems like spawning and pasting a total of 256 (sometimes less) different paster objects softlocks the engine even if they are deleted afterwards. Is this a limitation of the plugin or am I doing something wrong?

    Code:

    Demo:

  • capx 404`d!

  • Would it be possible to load a paster texture into a sprite?

    I'm wondering because I plan on using paster as a "terrain destruction" particle; it would paste the tile, destroy it and act as a particle with Litetween and Bullet behavior and I guess that lots of sprites would be less cpu consuming than pasters.

    Also, I'm curious; how does a Paster with a texture loaded (16x16 for example) compare to a Sprite performance-wise?

    Thanks in advance

    Edit: fixed a thing, my browser had a little seizure

  • Doing LOWREJAM 2K17. I've got a 8x8 grid of 8x8 pixel tiles. Fits perfectly on the 64x64 pixel resolution limitation the jam features, but downscaling breaks the main visual gimmick of my game (see gif)

    The problem is that detailed sprites inside a canvas (paster) are rounded to invisible, instead of solid.

    Any ideas on how to fix this? Thanks in advance

  • I was wondering if I could use the audio analyser effect to detect (humanly unhearable) triggers pre-written in a song (think of Guitar Hero's notes).

    I (kind of) got it working by using a really high frequency (over what a human can hear, 20kHz), but I was wondering if there was a better approach (using frequency bins)

    Here's a visualization:

  • Nevermind, figured it out... Jeez, I should really check my math before getting frustrated and making a post. My bad!

  • I've had this problem on stable versions, so no.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi there, quick thing:

    Spawning a very simple structure from the center of an object made of 6 sides. I want them to connect, to do so I just used the distance from it's center to get it's length. This distance increases using the same number every time (lineal), however, sides of the "parts" are not connecting.

    .CAPX:

    https://www.dropbox.com/s/k1hruxy79ywm5q1/why.capx?dl=0

    Any help?

  • Sweet, thanks!

  • Use a GLOBAL VARIABLE. Can be BOolean or even a multiplier for all speeds....

    What? Where? Not sure about what you mean...

  • Yeah, but I'd have to scale the function's parameter too or it would freeze for a waaaay bigger amount of time.

    Would like to find a way to set it to 0!

  • Trying to replicate Game Maker's "sleep" function, which stops the game for X seconds

    Potential uses:

    -Game feel

    -Camera "focus", which emphasizes importance (enemy death for example) by putting the camera there for an instant

    https://www.dropbox.com/s/cxsgjukbdo3lk ... .capx?dl=1

    First try:

    " On freeze (0.5):

    - set timescale to 0

    - wait (function.param(0))*dt

    - set timescale to 1 "

    (doesn't work)

    Second take:

    " On freeze (0.5):

    - set timescale to 0.01

    - wait (function.param(0)*dt)

    - set timescale to 1 "

    (works, but time is not really 100% "frozen"!

    I'm not asking for a miracle here, just curious if there is a really obvious solution I'm missing

    Thanks in advance!

  • Here's an example of doing parsing of a custom format:

    https://dl.dropboxusercontent.com/u/542 ... ormat.capx

    The advantage is you can customize it any way you'd like to make creating the data file easier. For example this one does without the xml tags or the need for all the comments and symbols of json. Also you can omit unused parameters.

    weapon
       id 0
       name sting
       perk glows when orcs are near
       damage 100
    weapon
       id 2
       name rusty sword
       damage 10[/code:6f6ung7e]
    
    To each his own though.  Personally I love creating something like this and dislike using xml or json unless I have to.  Another option could be to make your own editor to set the array data.
    

    This is THE BEST! I can't thank you enough for this Rojo...

  • > Yeah, that's what I meant, only one lastdata at a time.

    >

    Don't understand your problem.

    You can have:

    - 10 different file requests.

    - 10 different "AJAX on complete" with AJAX.lastdata inside.

    I stated earlier that I want to access all this data from different containers (arrays) instantly, I'd rather not risk it by loading files on runtime, which isn't instant... XML is nice, though, thanks!

  • > The idea is to make editing the data file easier since xml and json are tedious.

    >

    Easier to have your own format/parser?

    XML tedious?

    Disagree.

    One example of a xml dictionary that I'm using right now:

    <?xml version='1.0' encoding='utf-8'?>

    <dictionary version='1.0' selected_language='eng'>

    <word key='hi'>

    <translation language='spa'>Hola</translation>

    <translation language='eng'>Hello</translation>

    </word>

    <word key='bye'>

    <translation language='spa'>Adios</translation>

    <translation language='eng'>Good bye</translation>

    </word>

    </dictionary>

    What kind of file would be clearer than that?

    The XML parser in C2 is about 10 lines.

    Not trying to compete here! I know any syntax is better than mine, that's why I'm looking for alternatives.