yojona's Forum Posts

  • Hi guys, this is my new behavior "Box" now you can create classic boxes like "Super Mario"

    With "On Collision From..." detecting a collision from top, bottom, left or right is easier.

    Screenshots

    Available at scirra store

  • Classic box — Now for sale in the Scirra Store!

    https://www.scirra.com/store/construct2-behaviours/classic-box-3980

    <h3>Classic box</h3><div class="deshr"></div><p>Create a classic platformer box like Super Mario Blocks.</p><p>Introducing: "On collision from"</p><p>Now is easiest detect a collision from bottom, top, left or right.</p><h3>Conditions</h3><div class="deshr"></div>

    • Is enabled
    • Is moving
    • On bounce start
    • On bounce end
    • On collision from...
    • Is tag
    • On spawn object
    • On spawned object ready

    <h3>Actions</h3><div class="deshr"></div>

    • Set enabled
    • Bounce
    • Bounce to
    • Set direction
    • Set tag
    • Spawn object
    • Spawn object to

    Use this topic to leave comments, ask questions and talk about Classic box

  • I guess you could move the object by the offset, check for overlap, then move it back.

    This is my code, can you help me? I cant make it work with an offset

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I cant find this function in runtime methods, how can I check Overlapping at offset by code?

  • Tween is a Behaviour, not a Plugin - you've put it in the wrong directory - move it to "behaviors".

    I just realized it, sorry

  • I cant use this plugin :c

    what is happening?

  • dropbox.com/s/y1is3vuqolficn2/XYinAnArray.capx

    Hi, Thanks,

    but i need do that in the background, that's why i need to make a plugin, but i don't know how to get values from a family or behavior programmatically. (Javascript SDK)

    For example, get X for each solid objects.

    (Im gonna make a json with that values, and i want to make it easy for users)

  • Hi, how do i can get all objects from a family, for example:

    function myPluginFunction(){
        family.Y = family.Y++;
    }
    [/code:1w01gtcl]
    
    Actually I need get X and Y for each instance from a family and put them in a array, can anyone help me?
    
    regards.
  • On Canvas Snapshot -> YourPlugin.image = CanvasSnapShot

    CanvasSnapshot only works in "On Canvas Snapshot" trigger.

    This works on Android and iOS.

  • Can you share a Screenshot of the all plugin Conditions / Actions, please ?

  • Hi guys,

    I want to detect collision / overlapping in "Spike" tile, I dont want to use 2 tilemaps 'cause I need to create a Mario Maker clone, save tilemap, open tilemap.

    If I create an invisible sprite for each spike tile, I'm afraid to affect the performance, it's a mobile game, and at end of each level, the next level start immediately.

    This is my actual code:

    ----> DOWNLOAD CAPX <----

    (Player behavior: drag & drop)

    Works fine on left and right collision only.

    Some ideas?

    -----

    EDIT:

    Sorry, I solved it, I had inverted the X and Y coordinates. If someone has the same problem:

    ----> THIS CAPX WORKS FINE<----

  • can someone upload it again? :c

  • For C3 can we please have a scale outer integer mode which scales to the next integer size outside the window instead of inside as we have it now for Letterbox integer.

    +1

  • A sprite and an array in a container works for this. Here's an example:

    http://dl.dropbox.com/u/5426011/example ... ecord.capx

    Notice that only two events are used for the recording and playback. The rest are just standard game events.

    This idea can be extended by adding some interpolation between recorded states to smooth out hiccups caused by garbage collecting or other programs running in the background.

    Hi R0j0, Can you reupload the file, please?

  • Hi guys, I was thinking that add enumerations would be cool to avoid typing mistake or something, of course we can use variables but it will be easiest with a list of possible values to manage states, items, etc.

    In the properties bar, would awesome!

    (I should have used capital letters, sorry)

    in the editor: