Picking ?

This forum is currently in read-only mode.
From the Asset Store
Pick Up Items Sounds
$3 USD
50% off
Pick Up Items Sound effects for your game, Take them for a ride right now and you will worry no more.
  • Hello everyone !

    First of all, if there's anything I say that you don't understand, feel free to ask any question, I'm french and English was never my favorite class as a student. :P

    The thing is, I'm currently working on custom physics for my conceptual platformer, but I'm having some trouble making it work as it should.

    Actually, to explain my problem I need to schematize it. Here we go:

    -There are two objects, which I'll call " Tile" and " Chgmt ".

    -Platforms are made of "Tile"

    -All of the "Tile", which are juxtaposed, have their color changed in the case "Chgmt" is overlapping one of them.

    I don't know how to translate it into code.

    I'm guessing that I have to use " Picking by comparison ", but I don't really know which values could be help me.

    I can't provide you my current .cap because it uses a different bugged method, so here's a little schema for you to understand better:

    <img src="http://img831.imageshack.us/img831/2619/schmava.png" border="0" />

    Thanks for your help and have a nice evening ! <img src="smileys/smiley2.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is this a tile map?

    if so

    are your tiles mapped to an array?

    if not, i recommend you do that. The most advance tasks you can preform in construct use arrays ( or super structures, if you get the plugin).

    and its almost critical to working with tile-maps.

    ------------------------------------------------------------------

    if not,

    assign the tiles in a group a variable, like ('number')

    give all the tiles in a group the same value 'number'.

    then on a event

    using the function object

    "Chgmt" is overlapping "Tile" at offset 10(or whatever):

        ----> add parameter tile.value('number')

            call function("pick") forgetting objects

    on function "pick":

        - for each tile

        - tile 'number'= parameter 1 :

                          ---> change color.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)