Eindbaas's Recent Forum Activity

  • No problem MikaelS, I also did some further testing.

    Just wanted to make sure the 'On Kicked' problem was not browser dependant so I tried using Firefox. Sadly I get the same results.

    I modified the Chat Room example a bit to see what is triggered and from which group it came from. Also, when a peer is logged in with the username "TEST" (all caps), the host will attempt to kick that player.

    Maybe it's useful for your bug report?

    Try it here: https://drive.google.com/file/d/1VDwm2KOxRRFj4Y_-3atc4CU6sD-5nwgf/view?usp=sharing

    I was able to get the 'On Kicked' event to trigger sometimes, but it just never happened when I asked it to.

    First scenario:

    My PC connected to the Chat Room example as the host, my phone (using 4G network) then joined as a peer.

    The host couldn't see that a peer had joined. Peer-side, when then sending a chat message to the host results in the 'On Kicked' event (from the Peer group) being triggered. Seems like in this case it's got something to do with my phone not being able to connect properly? Switching over to my WiFi connection fixed that problem and everything seems to work normally.

    Second scenario:

    Suddenly disconnect the Host by closing it's browser tab. Peer-side it will sometimes disconnect and sometimes trigger the 'On Kicked' event (from the Peer group). How or why it does this is a mistery to me...

    As for the PeerCount issue, I can also confirm that the peer-side counter does not update when someone is kicked. This has to be related to the kicking problem in my opinion. I've added a counter to monitor this in my example. To recreate the problem, enable Remote Preview and open 3 browser tabs. Log into the first two tabs, on the third you log in using the name "TEST" (this user will be kicked when logged in). Then check the PeerCount in the top-right corner on each tab.

    I tested this using C3 version r111 stable, Chrome version 67.0.3396.99.

  • I'm also trying to trigger the 'On Kicked' event, can confirm this currently does not work for some reason.

    The actual 'kicking' of the peer does work though. Using the Chat Room example I found out it just triggers the 'On signalling room left' event instead (peer-side), but the 'On Kicked' event never triggers.

    Can this be fixed?

  • Oh, didn't know about that one yet. I stand corrected.

    Thanks

  • You'd have to create it yourself. Use a Sprite or a 9-patch as the background/window for your text. Then place a Spritefont object with text on top of it to create the textbox-look seen in games.

    The textbox itself is aesthetically very limited, it just displays the text with your chosen font.

  • Thanks for the kind words Christmas, glad you like it

    The easiest way to stop the player from leaving the boundaries was placing 4 solids around it. I could think of a way to remove the need for the solids and CameraFrame, but that would take me some time at my current skill level. Besides it would only remove the objects and add more code instead, so I went for this approach.

    You could replace the CameraDolly with a hard X/Y position, but that would overcomplicate things when you perhaps want to move the "center-cam" around later.

    Also, I think your screenshake looks better. Granted mine uses only events, but because of the lerping it doesn't look like an uniform screenshake.

    And don't worry about the "lovely mess" you create when trying to work things out. If it works it ain't stoopid, no matter how many events it takes.

    Good luck on your project ;3

  • Well, I'd create a layout for each of your 'screens' and then transistion between them using the "System - Go to layout" action.

    So you'd start on the 'Titlescreen' layout which has all your buttons on it, and when you click on the 'New Game' button you simply tell it to go to your 'WorldMap' layout.

    When you click on an area on your 'WorldMap' layout, tell it to go to the 'Game' layout with your player and enemies.

    And so on.

  • Heya, here is a simplified version I made:

    https://www.dropbox.com/s/u7kyz81qkmu7mu4/ZoomTest_2.0.capx?dl=0

    I removed the need for plugins (couldn't view your capx without them) and some behaviours.

    Using the scroll on your mouse speeds up or slows down the Scroll & Zoom effect (1 variable). Controls are the same.

    Let me know what you think...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Nice, i'm just starting out myself but i'm glad i was able to help you out.

    Good luck ;3

  • You mean something like this .capx using an array?

    https://www.dropbox.com/s/fkfp4y71kcbtv7d/Inventory_3apples.capx?dl=0

    It's exactly as plinkie said. When clicking on the apple it gets selected and removed from inventory (you can select multiple). When pressing the button it will only delete the selected apples.

    Hope it helps

  • Hiya!

    I'm Alex and I have mad <3 for retro games. So much even that I want to try developing one on my own.

    Hope you play my game sometime in the future ;3

Eindbaas's avatar

Eindbaas

Member since 8 Nov, 2017

None one is following Eindbaas yet!

Trophy Case

  • 7-Year Club
  • Email Verified

Progress

8/44
How to earn trophies