gibbon's Forum Posts

  • Hi, I’m not talking about the drawing canvas.

    Just simply using the system -> canvas snapshot action.

    I have no use of the drawing canvas. Just a sprite in the middle of the screen which I want to take a snapshot of.

  • Hi, can anyone explain to me how the sizing/scaling works with canvas snapshot?

    I have a sprite in the middle of the screen with its origin at top left, I action the canvas snapshot with the following:

    Snapshot X : sprite.x

    Snapshot Y : sprite.y

    Snapshot Width : sprite.width

    Snapshot Height: sprite.height

    The outcome is not what I expect, and to be honest I cannot fathom out how to get it to just be that sprite?

    If I leave all snapshot settings to 0, it does do a snapshot of the full viewport, as expected?

    So what do I need to do to get just the sprite?

    From what I can see , i need to be setting the X,Y,Width & height in Device Pixels, but how do I convert "pixels" to "Device Pixels"?

  • Hi thanks, there was no untoward meaning. It was only because in the past bug reports appeared to get picked up on quickly so was just querying it.

  • I know there is a lot going on around the world right now but was just wondering if there was any other reason that some bug reports are still sat unlooked at (or unassigned) from 6 days ago? From past experience bug reports were looked at and assigned within the day (or two)

  • You should read up on "instances", this can all be done with only 1 stool sprite and using Instances and Instance Variables.

    I feel having this done for you will not help progression.

    construct.net/en/make-games/manuals/construct-3/project-primitives/objects/instances

    construct.net/en/make-games/manuals/construct-3/project-primitives/objects/instance-variables

  • Thanks for taking the time to look.

    Ill post it as a bug and see if I can get anything back from them as to whether its me, or a bug.

  • Just to clarify, I want it to NOT be at the center of the screen/viewport.

  • dop2000

    The layer 100% rotates around a different X/Y in the example provided?

    It rotates but ALWAYS around center for me, even if I change the scroll to XY to something far away...

    what C3 version are you using?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am using the new object mesh features as its come at a perfect timing for my needs. Unfortunately I am completely stumped on how I can rotate the object without it altering the mesh. I have looked at both examples and neither help solve my issue.

    As it is hard to explain the issue I have attached a very easy and simple example.

    If anyone could help or knows how to fix the issue It would be a huge help.

    The example uses the latest beta (R222)

    Thanks

    dropbox.com/s/7vjc2bsyvdididk/mesh_issue.c3p

  • Asmodean

    Tried this as this was my first thought however it didn't work so I assumed it wasn't a way forward.

    I then tried a few examples similar from the forum to what you have done but when you load them into C3 they don't work...

    and unfortunately yours is the same, it is a C2 file and it appears C3 doesn't work, the "scroll to" just seems to get ignored.

  • Is there any way to set the angle of the layer NOT around canter but at a different pivot point?

    this is not a scrolling game or anything alike, I just simply want to angle the layer 20 X degrees but around a different position other than centre.

  • Just checking but

    [

    [3,2][4,1]] isn't valid JSON, it should be : [[3,2],[4,1]]

    Was this a typo in the post?

    Andy

  • I am developing my app and though I better do a real test on my device, however this did not go so well.

    My app connects to a local Websocket server on the local network, and in preview this works great, in Android studio in the Emulator, this works great...

    On my device, android studio logs the following...

    WebSocket connection to 'ws://192.168.1.118:2048/mysock/' failed: WebSocket is closed before the connection is established.

    Any ideas?

    EDIT: Looks like this is a windows firewall issue after all!

  • Sorted it!

  • Going forward with this, does anyone know how to add JSON to an array element?

    I can add a value/string but cant work out how to add more JSON in an array.