Multiplayer - Trigger Once not working on host

Discussion and feedback on Construct 2

Post » Tue Mar 25, 2014 5:02 am

I made a little test project using the multiplayer update. The goal is to make a server based system similar to the multiplayer game demo, but the host doesn't play. For the demo I made a little spaceship game and got the movement working, but when I tried to get firing to work, I couldn't get it to fire just a single time when you push the button. I tried multiple ways, but every time it keeps firing repeatedly. Looking at it in debug, I see that the variables or bools that I use to try to stop it from firing change correctly, but it still keeps firing.

Here's the capx: http://1drv.ms/1eHT9n6
Sorry about the lack of commenting. I was just throwing it together for myself quick.

There's a bunch of other weird things that I haven't gotten to yet. For now I'm just trying to get this portion to work. I'm testing it on two computers inside the same network. No idea if that has anything to do with it. I also haven't tried more than one peer yet, just working first on getting it to work once.
B
5
S
2
Posts: 11
Reputation: 1,197

Post » Tue Mar 25, 2014 12:40 pm

Have you seen the third multiplayer tutorial? It covers how to make a "trigger once" work per-instance on the host. BTW your link doesn't work here.
Scirra Founder
B
403
S
238
G
89
Posts: 24,653
Reputation: 196,143

Post » Wed Mar 26, 2014 5:37 am

I'd read it. Problem was a stupid mistake in my logic. Whoops.
Don't know why the link didn't work. I copied it directly from OneDrive.

Now, on to the rest of the weirdnesses I'm running into.
B
5
S
2
Posts: 11
Reputation: 1,197


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 3 guests