gabmusic's Forum Posts

  • Hey, Bro!

    I followed your method and it Worked.

    Thanks a lot! :)

  • Hey, thanks for your ideas.

    Could you descant a little more about the second method?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • This is what I got when I try to open your cp3.

    Dont you have a capx?

  • I made this minimap using Canvas and a mask layer. It works fine. The problem is when I change the layout and return to it. It resets the canvas to the original state when the map was completely unrevealed.

    If I set canvas with persist behavior, it doesnt reset, but reveal all the map.

    How do I make it be at the same state when the player is back to the layout?

    Thanks!

    Tagged:

  • Hello! Could you help me?

    If I want to make all Tiles 0 be replaced for Tiles 1, for example, what should I do?

    Thanks!

    Tagged:

  • Hello! Could you help me?

    I'm trying to figure out how to create a sprite over a specific tile (like tile 0), but randomly. Like, there are many tiles 0 on the tilemap.

    Another criteria: it can't be occupied by another solid sprite.

    To get clearer, let me tell you what it would represent in the game:

    The player cuts a tree -> after X time another tree has to grow in somewhere -> but not anywhere, it has to be over grass or mud and not over other trees,

    That's all. Thanks for your time.

    Tagged:

  • It worked, thanks! :)

  • Hello!

    I want to make this sprite (a green marker that has the same size of a tile on my tilemap) snap to the tilemap Grid while I move the cursor.

    I think the way is using TILE TO POSITION action, but I'm not sure how to set it.

    Could you help me, please?

    Thanks!

    Tagged:

  • It worked!

    Thanks a lot!

  • Hi! Thanks for replying!

    Yes, as I said, I've picked nearest dummy.

    I tried to to use system for each Animals already. It doenst work.

    One instance set the var1 correctly, the others get a static value.

    But, could you analyse my event? Is there anything wrong?

  • Hello!

    I have a family called Animals with several instances on same screen.

    This family has a instance variable, let's call it "var1".

    And, finally, I have an sprite called dummy with several instances on same screen.

    I want to every tick set var1 of each instance of family Animals to:

    distance(Animals.X,Animals.Y,dummy.X,dummy.Y), picking the dummy that is nearest to Animals.

    When I have one single instance of Animals, it works. More than one, the var1 get non sense values.

    I don't know how to pick all members of Animals to get this action right.

    Could you help me?

    Thanks!

    Tagged:

  • Thanks, I appreciate it!

  • The official multiplayer tutorials cover how to handle peer inputs from multiple peers in part 4.

    https://www.construct.net/en/tutorials/multiplayer-tutorial-real-598

    I perceived I didnt put the "for each peer" condition on the peer input config.

    What I got putting it was: the third player connected now moves his sprite and the second player sprite, and the second player has no functional input anymore.

    What Am I missing?

  • Thanks, my friend!

  • Hello, everyone!

    Recently I've read a lot about how multiplayer works and have created my own script based on some videos I watched.

    I got a functional peer-to-peer connection, and their controls work fine. Since I want to make a game for 4 player, I tryied connecting more peers in the room. Connection worked, although the player instance of the 2º peer wasn't created.

    I made some adaptations and I the player instance of the 2º peer was being created, but when the 2º peer joined the room, the controls of the 1º peer stopped working. After hours trying to figure out how to make both controls work, I decided to try using different sprites objects for different players. Host works fine, but the peer controls doesnt.

    This is my capx where I'm trying to solve this problem (it's a bit messy, sorry):

    multiplayer.capx

    I really would love to connect 4 players on the game I'm developing. I want to play it with some friends.

    It would be really nice if you send me some tips or a capx that makes more than one peer connection with functional controls. I'm sure someone has already done that. If it wasnt possible, it would make no sense having a maximum peer setup.

    Thanks a lot, my friends!

    Tagged: