How do I destroy a spawn in multiplayer.

0 favourites
  • 5 posts
From the Asset Store
The official Scirra Multiplayer Signalling Server for helping peers find and connect to each other
  • Hello, in multiplayer an error occured when creating a spawn.

    If I create a spawn and immediately I destroy, the player is destroyed.

    I do not understand what happens, I want to destroy the spawn but the player is destroyed.

    In the pong example, in host group I added this:

    https://dl.dropboxusercontent.com/u/60803633/test.capx

  • its because paddle is the same object it doesn't repick the spawn vs what there already. I had the same problem so my solution was to create a new sprite such as Paddle1 or paddle2 what ever it need to be.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I understand perfectly but ... do you think this behavior is right ?.

  • Well i can tell you this Contruct two engine doesnt have a complex brain like us to figure out for you. It actually a very precise and dumb where you gotta get it to know what instruction you want specifically. Like for instance you could just point to a paddle in real life and say get rid of it.

    In contruct two you would have to say Destroy Name of object and what variable it is. and if you told someone to destroy the paddle he would still destroy both because they are of the same object.

    and no i do not think that right If you wanted to just to destroyed the newly created paddle you can try to use 'on created>destroy the object but I have to ask why do you want to create a paddle just to destroy it ? is it a defensive way of protecting you own paddle ? if so id just redo and ask what events are playing to why does the paddle get destroy by what.

  • That was just a test.

    I wanted to see how I must refer to an object that has been spawned.

    Ok, I've found out, thanks for all the info.

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