VertexZero's Forum Posts

  • Use instances variables (boolens which means True or False) added to the player controller.

    these should be something like this:

    isRunning

    isJumping

    so when the character is moving left or right the instance variable is set to true and set to false once the action is over.

    so it would be something like

    Gamepad key pressed ----

    -->sub-event: is mirrored --> Simulate Platform pressing left

    Player set instance var isRunning to True

    -->subevent:is not mirrored --> Simulate Platform pressing right

    Player set instance var isRunning to True

    is inst. var. isRunning true, then set animations to running

    The same goes for jumping and others

  • nvbenegra, sorry for the incomprehension, english is my third language. Thanks for trying!

    99Instances2Go that's exactly what I was looking for!! Thanks pal!!

  • Shameless bump. Still cant find a proper way. Thanks

  • without using the timescale. On my project I simply did it via animation and waiting for a signal + states.

  • I suppose you can use wait for signal instead?

  • To explain myself better (hopefully lol)

    I need to retrieve info about layout in which an object is placed.

    All I can see for now is go to layout by name or go to layout, but if it would be possible to lead me into another direction it would be appreciate.

    The reason, in my project there will be a good amount of doors, game is a 2D side scroller.

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi,

    So I managed to sort of resolve my problem with doors.

    Now, I would like to transition between layout using a database. is it possible?

    I have 5 doors in the same level leading to 5 different layouts, and since I can come back to the first layout, I would like to find the best way to do it.

    I couldnt figure out how to do it using variables.

    Thanks in advance!

  • This is how I do it, hope it can help

    https://drive.google.com/open?id=0B27TG57JCwl_czhVd002Ylgwck0

  • ah thanks rexrainbow

  • , I'm really sorry to ask again.

    I'm trying to understand how it works (really new to me).

    Basically, I'm trying to compare if the name of a doorObj is located in the csv table. If true then load the corresponding values to that object such as xPos and yPos.

    so then I can populate the instance variables of the doorObj.

    For now I'm trying to go like this:

    CSV Data doorObj.dooID in col ''d'' --> ( if true here I would add the info from the same row but here is where I block)

    Sorry and thanks in advance

  • , wow, you are awesome! Thanks!!

  • Hi rexrainbow, great plugins btw! and thanks!!

    I got a small question:

    Is there a possibility of comparing if the value of an instance variable of an object equals one within a col or row?

    exemple. I have a door and in an instance var I store the value of its ID. can I compare its ID by doing a lookup in a col within a csv table?

    Thanks in advance!

  • Perhaps by creating a state triggered by pressing X condition. Once triggered, event is executed, once this event is executed, close window

  • keyboard On key X pressed --> Browser Close

    you mean to close the window, or maybe you meant fire an event after the window is closed?

  • Thanks Fidasx

    I have doorID so I can set the idor each door independently. Also I store their xPos and Ypos. But what I would like to do is retrieve this info instead from a database.

    So, when I press X to enter a door, it determines the door IDs and after obtaining it, it looks into a database to retrieve the proper xPox and Ypos so I can set them for the Player in the new layout.