Prominent's Forum Posts

  • I reported this in the past:

    But they don't want to change it.

  • Keep in mind, you can't have global objects on global layers, otherwise they'll get duplicated everytime you change layout.

  • byondisoft , thanks! that works that is interesting that you have to re-position the canvas.

  • If you use windows Vista or XP, you'll have to use v0.13.2 or older. Anything newer than chromium 49 will not work on vista or xp because support for those platforms have been dropped.

    Also, Mac OS X releases 10.6, 10.7, and 10.8 have been dropped

  • Can you clarify on what you mean when you say combining the layouts?

    You can't merge them into one layout in the editor if that's what you mean.

  • Thanks.. that must be the issue.

  • I was under the impression that devices such as drawing tablets would work with the touch events, but I can't seem to receive pressure of a touch using one.

    Has anyone else managed to get this to work?

    I've tried firefox with

    dom.w3c_touch_events.enabled

    and chrome with

    --enable-experimental-web-platform-features

    In both cases, pressure just returns a value of 0.

  • newt, I want to scale a single axis, such as it's width or height values.

    This is possible with sprites, by adjusting their width/height. If layouts/layers can be scaled- it would make sense to maintain some consistency and allow adjusting the x,y axis separately for those as well.

  • Ashley, thanks. I just tried it in r232. Why can't users specify different values for x,y axis when scaling a layout or layer?

    I'd like to be able to flip or mirror the layout/layers, and setting the scale to -1 just ends up with it rotated 180 basically since both axis get flipped instead of one.

  • Problem Description

    Game freezes for a second when Play At Object action is made for the first time AND when running game for the first time (doesn't happen after refreshing page).

    Attach a Capx

    https://1drv.ms/u/s!AhHSZHEulqh_gWoZ4BKI4w1QmnIk

    Description of Capx

    plays audio 3 seconds after the start of the layout.

    Steps to Reproduce Bug

    • run layout
    • watch sprite moving and how it will freeze when audio plays

    Observed Result

    game freezes when audio plays

    Expected Result

    not freeze

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES/NO)

    Operating System and Service Pack

    vista sp2

    Construct 2 Version ID

    r227 (also checked with r232)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • oh, I guess that would essentialy change the position of the origin.. so it might not be what you want.

    You could maybe use a separate sprite object that doesn't rotate and is invisible, and then use your visible sprite to be allowed to rotate.

  • First thought that comes to my mind is use an imagepoint located at wherever you want the center.

    Then, to rotate sprite:

    -find position of imagepoint relative to layout via imagepointX(), imagepointY()

    -now calculate the angle and distance from imagepoint to the origin of the sprite.

    -set position of sprite to imagepointX+cos(calculatedAngle+rotationAmount)*calculatedDistance

    -do the same for Y, but use Sin() instead of Cos()

    -Now rotate the sprite by the same rotationAmount.

  • Ashley, here is a youtube video showing the steps: https://youtu.be/LmDXZrNIZBc

    As you see in the video, the On start of layout gets incorrectly undone before the other condition.

    I also show the same issue with undoing actions.

    I create the On start of layout condition.

    Then I create another condition that uses an object.

    Then I right click that condition and choose replace object, replacing with another object.

    Then I undo once to undo the replacement, but then I undo again, and the On start of layout condition is removed instead of the second condition (because replacing the object somehow has now messed up the undo/redo stack).

  • You'll have to calculate how many tiles high the laser is: round(laserhunting.height/tileheight). Or if laser height is constant, just make it a value of however many tiles high it is.

    Then create a for loop 0 to calculatedNumber.

    And use the tile position the laserhunter.y is currently on PLUS the loopindex value. That will give you the current tile position that should be erased.

  • Ashley, you have to first CREATE the actions. Please follow the steps.

    Then do the rest of the steps.. and then undo all the way.. notice it will REMOVE the actions(CREATED actions), in the wrong order after you replace the objects.