ecb247247's Recent Forum Activity

  • You do not have permission to view this post

  • Hi,

    I have been a passionate musician and a music composer for the past 15 years. Have also produced my own music and songs. Currently I am focusing on composing game music. I am flexible and offer very professional service.

    You can find a few samples of my work below, these samples was made with an RPG game in mind.

    You can contact me to discuss any of your requests / projects.

    https://soundcloud.com/edgar-charlton-blakeslee/sets/rpg-video-game-music

    Thanks,

    Edgar

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks for your reply.

    I tried doing this with Javascript and are able to store the username in a cookie on the website, but I'm not sure how to do the script in Construct, tried a couple of different ways.

    Do you have any script examples or been able to get a variable a into Construct and store it as a global variable yourself?

    Thanks.

    Regards,

    Edgar

  • Hi,

    I need a way to send the player's username & password from my website to the game after they login.

    Right now the player's have to login on each game, but it would be more easy to login once on the website and have access to all the games without having to login again.

    I was thinking sending the login details as a variable through the browser but not sure how to do that and I don't think it would be that secure either.

    If anyone has any ideas I would greatly appreciate it.

    Have a great day!

    Regards,

    Edgar

  • a galaxy fold is 280 CSS pixels, an iphone 5 is 320, galaxy s5 is 360, so probably 320

    Thank you.

    One last question about this, eh how do I change the screen size once it has been detected?

    Regards,

    Edgar

  • PlatformInfo.WindowInnerHeight

    I don'T feel comfortable going into further detail here on the forums

    Thanks for that, I should manage something with that.

    Would you suggest a minimum size?

    Regards,

    Edgar

  • choose a minimum size that will fit all of your UI and then a maximum size and on resized, check the size of the screen and calculate the most appropriate screen size to use within those numbers

    Thanks for your help!

    How can I check the screen size, does construct have something that can detect the size of the screen?

    Or maybe better, do you have an example you can show me?

    Regards,

    Edgar

  • Hi,

    I was wondering if anyone can give some suggestions on developing for different mobile screens that will be played in the browser, not as an app.

    I have already tried a couple of things, one is that I have the layout to as low as 320x480 then I do scale inner and that fits perfectly on an iPhone 6, but for my Samsung A50 objects pop out of the screen. I have also tried to set the layout to 360x640 which I read is the most common used screen size, but the same issue occur. I have tried all the full screen and scaling options Construct offers.

    I wanted to check here first if anyone has any suggestions before I make a layout for all mobile screens.

    Regards,

    Edgar

  • Not sure how to do using Ajax but the native Multiplayer plugin supports this function.

    You can simply use the conditions like:

    On Peer Disconnected ->

    On Kicked ->

    Thanks for that shepherdgames, the On Peer Disconnected works as I want it.

    So basically I have just implemented that into my existing framework.

    Thanks.

    Regards,

    Edgar

  • Why AJAX? Are you not using the Multiplayer plugin?

    After receiving every successful ping on the host, you can restart a timer, for example "Player1IsAlive" for 10 seconds. When this timer triggers, this means that the host hasn't received a ping from this player for 10 seconds.

    I'm not using the Multiplayer plugin, everything is done with Ajax.

    I looked at your example, but not absolutely sure how to implement it.

    You wouldn't know if there is a way to disable the red cross that closes the game with NW.js applications or playable ad? or even a setting to remove the window around the application? That would be an easy solution, so then the player is forced to click on the leave button.

    Thanks.

    Regards,

    Edgar

  • Don't think it's possible. What you can do is send a ping from each player to the host every couple of seconds or so. If there have been no pings from a peer for some time, you can assume it has disconnected or quit the game.

    Thanks for the suggestion dop2000.

    I have been trying to set up something like this for a while but not sure how the condition will be.

    Basically what I'm trying now is this:

    Every 2 Seconds

    - Add 1 To Ping Variable

    - Send Ping To database

    But I'm struggling with what the condition would be to check if there has been no ping from the other player for some time. I only have the action for getting the ping from the database.

    Every 2 Seconds

    - Request Ping

    - Set Ping Variable To Ajax.Last.Data

    Thanks for the help.

    Regards,

    Edgar

  • Hi,

    Is there a way to detect if a player closed their browser?

    I am working on a multiplayer game and need a way to check if the other player closed the game tab or their entire browser, if that happens and just before they leave I want an action to be sent to the database informing that the other player left.

    I have checked the Browser object but there is nothing there as far as my knowledge goes, and the end of layout command does not do it either.

    I have a leave button in the game but sometimes people will just close their browser instead, and then there is now way for the other player to know what happened.

    Thanks.

    Regards

    Edgar

ecb247247's avatar

ecb247247

Member since 6 Sep, 2019

None one is following ecb247247 yet!

Trophy Case

  • 5-Year Club
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

8/44
How to earn trophies