Nubelite's Forum Posts

  • 5 posts
  • Construct 2 had issues with changing layouts with online multiplayer. Can construct 3 change layouts in online multiplayer?

    For example: 4 players join a waiting room, then the layout changes to a procedurally generated map. Would the scene change for all players, and would the generated map load the same for all 4? Assuming you coded it correctly.

  • You do not have permission to view this post

  • if they are two different sprites then copying the code and just changing the enemy sprite in the code to the second enemy sprite.

    If the enemies are similar in attributes, how they are killed, then you might want to have the enemy sprite that already works have the second enemy as another animation. Then you just set the animation of the enemy of your choice when it spawns.

  • I am not sure what part or if as in a whole you need to see something setup. I don't have that but i can offer what i would do to set this up. Also assuming this is a single player game.

    Players gold would be the global variable. can modify it anytime in the game then.

    The shop would multiple layers, in its own scene, where one side is players inventory (bottom interactive layer, just above the background stuff.) and then the other side the shop screen. Can use a book with pages or tabs to have the shop layers go visible or invisible. If you do tabs then every time a player clicks a tab first set all shop layers invisible and then the one they choose to visible, some headache avoided. Once you setup one shop layer it is copy and modify. The easy way of doing a shop is tab method with item picture and a buy button. Each button can be the same sprit, as with the item picture, but have a variable with the item name and price. then code will be somewhat like the following.

    When player clicks on buy now

    player gold = player gold - buy now price variable

    add "buy now item variable" to player inventory.

    When they do purchase something from the shop they click the buy button next to the picture and it deducts the gold and then adds it to their inventory. I do not know how you have your inventory setup that will be all you. You should have this setup first before you set up the shop and if so you should have some idea of how to add items to in in code. There are several different inventory how to's out there.

  • i was able to figure it out.

    i put player weapon as a family of it own

    hitbox on collision with player_Weapons

    Pick hitbox where team != to weapon team

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am at a bit of a loss. I want the enemy to use the same sprite as the player.

    Sprite has:

    Hit box

    Body

    Weapon

    Each one has a variable for team and peerID, i want to make it multiplayer once i get single setup.

    I am trying to figure out a way to have the weapon dmg the enemy or player.

    I have setup

    Weapon on collision with HitBox

    Weapon team not = to hitbox team

    then deal dmg to hit box.

    this does not work and i am not fully sure why. If i do it with the multiplayer myID variable it does work.

  • 5 posts