Paradox's Forum Posts

  • Not a biggie, just text on a wrong layer in template.

    Link to .capx file (required!):

    "Touch - Zooming.capx" template

    Steps to reproduce:

    1. notice there is a layer called "UI" with parallax 0,0

    2. the text box was obviously supposed to be on that layer but it's not.

    Observed result:

    Text scrolls off screen

    Expected result:

    It should show the non-moving layer.

    Construct 2 version:

    r137

  • Perhaps the expression: distance(x1, y1, x2, y2)

    enter the X,Y of the tower, and the x, y of the enemy, and it will return the number of pixels between.

    Edit: and do a PickedCount (with all picked) to see how many towers there are, and don't create one if it's more than your maximum.

    Tower.PickedCount < 20

  • You don't even have to use an Iframe if you don't want to.

    For example, on my site in an Iframe:

    http://visualparadox.com/games/pucked.asp

    and on my site linking directly to the directory exported by Construct2:

    http://visualparadox.com/games/pucked/

    Edit: spell check changed a word

  • Is this still doing this? I tried to recreate with r137, and it didn't rename the default animation.

    However, if I load an image on a newly created animation while the name is still in edit mode from its creation, it does load the image into the previously selected animation. (as if the new animation isn't selected until the edit of the name is done.)

  • I mentioned this as a reply to the spritefont right justify.

    Blackhornet did figure it out, it explains why my capx didn't give the IE error, it didn't word wrap. If I change my capx text box to wrap, it gives the error.

    I have no workaround for this one, so my game is on hold.

  • It does seem to be related, I tried his scaling on my test capx, and it did work correctly at .55 but not .56

    my scale in the capx was failing at .7

    Does appear to be with right justify, czar's capx is right justified.

  • You may also use the same lerp numbers to scale the ball down as it fades, that way it simulates moving away from you as it enters the hole, disappearing in the darkness.

  • You would have to refer to the object to get it's location. You would pick by UID, and then look at the X & Y of what was picked.

  • I know, it doesn't crash in the version before I added the spritefont.

    And only if in IE or with webGL switched off.

    Edit, actually that may be it, i added a particle to the capx above, and turned off webgl, and it crashed.

  • I turned off WebGL, and my loaded in Chrome, but on trying to go to the 1st level I got this java error:

    Javascript error!

    Uncaught TypeError: Cannot call method 'loadTexture' of nullhttp://localhost:50000/Particles_plugin.js, line 70 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    --

    Still don't know if it's just my game.. will keep exploring...

  • Did you say the Laptop was asleep? I seem to remember that being something in the past...

  • The workaround is to drop it above the last one, then drag that last one back above it.

    Edit: A Workaround I hadn't thought before, hit control X to cut the event you want to move, then Control-V to paste it, it will paste at the bottom.

    (Someone pointed out you could Control-V on an empty event sheet, which made me think of that.)

  • uh oh, just got an error trying to test in IE10 that may be related:

    ---------------------------

    Message from webpage

    ---------------------------

    Javascript error!

    Object doesn't support property or method 'trimRight'

    localhost/Spritefont2_plugin.js, line 490 (col undefined)

    This is either a bug in Construct 2 or a problem in a third party plugin or behavior - please report it to the developer!

    ---------------------------

    OK   

    ---------------------------

    My test capx above didn't give this error, so I will have to poke around some more, see what else could be causing it.

  • I've never made a platform game yet, so I don't have specifics.

    Would "Picking" the top most enemy when more than one are overlapped, work?

    Add the condition "Pick top/bottom" (under the sprite's z-order) to the overlap event to filter it down to just one.

    You might get more help if you made up a test Capx for people to add suggestions to. What your asking is a lot of work, try to make it easy to give you an answer.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Confirmed, Control-f4 closes tab and runs preview.

    (not continuous preview as holding shift does.)