christina's Recent Forum Activity

  • the problem persists if I completely fill an array with -1 and try to retrieve the -1 value by using set tile x,y

    to tile array.At(array.CurX,array.CurY)

    The array of course is working properly. The SetTile isn't. It returns that weird big number. It's worth a look

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Ashley gillenew

    Ditto. It makes no sense

    here's my CAPX

    Fixed the CAPX to work: as Ashley suggested, adding an "erase tile if array value is -1" action works like a charm. Still, I'd love to see this fixed.

  • you're absolutely right, apologies.

    The capx link above should work now.

    And yes, I think the drag and drop behavior is working as expected. It is just not useful for what I need it :)

  • I had fun!

    Tell aquilicoco I loved the art!

    And expertly coded, thank you so much for the CAPX!

  • While dragging a sprite with the drag and drop behavior, if I try to scroll the layout (with the WASD keys for example), the sprite doesn't update its position.

    Is this a bug report?

    The sprite *does* update its position when you move your mouse even a tiny bit, so it looks like the Drag and Drop behavior is only working for absolute mouse.X, is that right?

    CAPX

  • By the Gods, keepee

    You completely solved this for me <3

    And thank you for the math as well, this will make my code so much more readable.

    <3

  • It seems that with every layoutScale change, Construct assigns a different X,Y to what was formerly X=0 , Y = 0

    So there's an offset, but I can't connect the numbers.

    These are the experimental data I got from zooming out, and keeping the mouse cursor in the same X = 0

    layoutscale 1.0 viewport 320   offset =   0

    layoutscale 0.9 viewport 355.5 offset = -19.75

    layoutscale 0,8 viewport 400   offset = -50

    layoutscale 0.5 viewport 640   offset = -320

    layoutscale 0.4 viewport 800   offset = -600

    layoutscale 0.2 viewport 1600 offset = -3200

    And that's probably on top of scaling each tile.

    tulamide any thoughts?

  • Hi all: I'm making a simple level editor.

    While left mouse clicked = place tile

    Mouse wheel to zoom in/out

    The problem is, when I zoom in/out, the windows mouse cursor gets offset, and I don't understand how LayoutScale works.

    For example,

    at 100% layoutscale, I get ViewportRight =300 and layoutWidth = 300

    at 50% layoutscale I get viewportRight = 451 and (as expected) layoutWidth = 300

    Why 451px?

    tulamide seems to have solved it once before here in

    's code:

    scirra.com/forum/zoom-problem-cap-added_topic42021_page2.html

    but the .cap isn't there so I can't check.

    Here's my CAPX, I'm sure I'm missing something simple..

    CAPX

  • Works fine for me, moxBorealis :/

    I don't use any 3rd party plugins

  • Yeah, all graphics and animation are mine. A year and a half of work!

  • retrodude tx so much, I've only tried some of those. As always, if Kotaku or Rock Paper Shotgun don't feature an indie game, it's very hard to make it work!

christina's avatar

christina

Member since 21 Aug, 2012

Twitter
christina has 3 followers

Connect with christina

Trophy Case

  • 12-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies