99Instances2Go's Recent Forum Activity

  • Every sprite has already an unique ID. shortened as UID. You can retrieve it in the expression Sprite.UID

    It is unique during run time. It can rearrange during designing, when you going to create/destroy sprites in layout editor.

    You can also give a sprite an instance variable. Give it a accumulating value during run time. Or give it values in the layout editor.

    Both are intensive used. But not (or very rarely) in the way that you mention.

    Using the condition Sprite > 'On collision with another object' will PICK both (instances of) objects, and only those objects.

    The actions work on the picked objects.

  • I'm really sorry for my incompetence!

    Oh gosh, dont be. It is just hard to help with no capx. It always comes down to guessing and gambling.

    I did't get that you zoom, and that has some complications.

    This helps ?

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

  • > Second layout is probably same size (or smaller) then the viewport.

    > (Layout size in the Layout properties versus Window size in the Project properties)

    >

    1920x1080 for everything. For both Layout and Project Settings

    So, yeah i gambled right.

    If they are the same, then you cant 'scroll' the layout eh. (when unbound scrolling set to 'no').

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Set the collision polygon (preferable to the bounding box) and the origin for each animation frame the same. My wild guess.

  • Second layout is probably same size (or smaller) then the viewport.

    (Layout size in the Layout properties versus Window size in the Project properties)

  • If you separate them, you might have a problem with the 'else'.

    I suppose that 'platform' is a tilemap and 'breakable' a sprite. So you cant bring them in 1 family.

    So, make 'breakable' a tilemap, if possible. Now just check overlap with 1 family. I what i prefer.

    You can separate them like ...

    is overlapping platform

    ____set boolean

    else

    is overlapping breakable

    ____set boolean

    else

    ____unset boolean

    i think that should work

  • https://www.dropbox.com/s/xz4e4aehv0ivc ... .capx?dl=0

    Pick how ever you like in event 6 & 14.

  • Maybe.

  • Uh, no. You want to sort on X. Y is kinda 'attached' to X. As branches on a tree. Why i visualise an array as a tree. Sorting on the Y will indeed rearrange the whole tree, forgetting the branches.

    I would Use an temp array. (in dont know better)

    For the first number (150 in '150, cell01, cell02, cell03, cell04, cell05') you can just sort on the X-axis.

    Then you got to loop each Y on an each X index, copy the values on that Y index to an X-axis in a temp array.

    Sort that array, and copy them back.

    So copy 'cell01, cell02, cell03, cell04, cell05' to a temp array. Sort the Temp on X. Copy the sorted values back.

    If you need an example, give me an array in a .capx. Will do.

  • To turn off collision cells, you just make a event that 'disables' it by 'not playing nice to its rules'.

    (according to my knowledge, and if interpret the rules correct )

    Object1 is overlapping Object2 <------- will use collision cells

    ______ Actions .......

    Object 1 is on screen <--- will exclude Object 1 from the collision cells (or any other pre-pick condition)

    Object1 is overlapping Object2

    ______ Actions .......

    See Ashleys blog.

  • ^^^ I like that more than 'unbound scrolling'.

  • Let's make the bus front headed down. Now we have front part of the bus heads down which is make the rear heads up mean while the background still scrolling up. We get our bus moving backwards! After all it's all about relative position and how we dealing or make use with it.

    Cant do, says the devil on my right shoulder, that will change angle and/or distance towards the mouse/touch, and therefor make 'the bus' move.

    Perfectly possible when using 8directions, or probably any other way that i can think off, just not when steering towards the mouse/touch. (i think ... means i am in doubt, means i dont see how)

    Hey ? I am not arguing, not seeking you, not attacking, not interested in my own wrong or right. Rather seeking dialog.

99Instances2Go's avatar

99Instances2Go

Member since 12 Feb, 2016

Twitter
99Instances2Go has 2 followers

Trophy Case

  • 8-Year Club
  • Email Verified

Progress

9/44
How to earn trophies