ArcadEd's Forum Posts

  • I think I got it, I was forgetting to destroy all the grey blocks if I am connecting as a peer. Now if I sync greyblock with position it works without the need for the variable.

    I went into debug and noticed there was 180 grey blocks on created instead of 90 .

  • Yeah, that's what I found too. I'll try the other way and report back.

  • DUTOIT If I have 100 blocks, do I need to do a foreach and sync every block? Because it doesn't seem to be working with just the single statement.

    If so, I may try out DFN's suggestion and use send message, once I learn about it .

  • Thanks gang.

    This is only a 2 player game, so I'm not too worried about performance there. I'll look over both suggestions, thanks again for the advice.

  • I have a simple game, 2 player shooter with blocks to destroy.

    Everything is working great in MP with the players and controls, but I'm having a hard time figuring out how to destroy objects.

    Both players shoot the same bullet (whiteBullet), and when it collides with a grey block, it should destroy that block. I have a group that handles the white bullet collisions and I am turning that group off for the peer so the host handles all the collision checks. Problem is the destroying of the block works on the host side, but on the peer side the blocks stay, although their collision is gone as I can then shoot "through" them.

    I've tried syncing grey blocks with the multiplayer object and no luck. So what is the best way to sync when and object has been destroyed on the peer side?

    Hopefully I explained that well, if not I can make up some videos.

    Thanks.

  • Looks good man, I'll give a go when I go home. I don't have my tablet with me.

  • russpuppy

    I just got the same error, this is my first time using XDK so I figured it was my fault .

  • Ok, great post Ashley and I can get behind that. Everything seems awesome for Android, or at least moving in a positive direction.

    However for those of us that Develop for Apple as well, it seems like the Ejecta has many of the same "gotchas" in your list. So what is the option there? Hopefully we are not expected to wait for io8 to launch and get installed on devices and cross our fingers that the new phonegap is our savior for ios dev .

    Thanks again for all the hard work.

  • New Beta, see first post. Thanks!

  • Yup, that was exactly the problem. Looking up how to convert string to int now.

  • That seemed to be it. Thanks

  • Hmm, good question. I thought I tried comparing as strings earlier just in case, but i have tried so many things, who knows .

    I'll try it again.

  • I added in some logging:

    The info is showing in the browser log, it's just the subevents that don't seem to be firing. My thought was with each loop of the For Each loop, it would run through each of the sub events and do the compares. Is that not correct?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm really struggling with some array stuff here. I feel like I have everything setup right, but it's just not working.

    Basically I have 3 arrays that store the X, Y and Type of blocks I want to create.

    My code, I am comparing the X value at the CurX position of the for each loop. I have the 1pblocks added in there so I can debug and comparison is never true, resulting in the 1pblocks NOT being updated to 23, never mind the blocks being created.

    Here is what the array looks like I am getting the data from.

    I've been at this for a few hours, and I have used arrays like this in other projects so I am just not sure what I am missing here.

    Thanks.

  • Thank you . I'll put that tidbit in my brain.