abigame2018's Forum Posts

  • Thank guys! So we cannot use the multiplayer plugin either, right? I tested my game with multiplayer mode and it didn't work. How do you guys implement your multiplayer game?

  • Hi. I'm trying to display user's avatar in my FB instant game. Does anyone has experience with that? I've already added the Facebook plugin with appID and app secret. I tried to use it to log in then get user's avatar but it seems not work. Btw, I don't know if we need to log in when we already play instant game on our messages.

  • You need to add instant game plugin to your project.

    EDIT: also remember to change your uploaded zip file to production state (you can find it at web hosting section on your FB developer page)

  • Thank you! I've already tried that as I wrote in my first comment. The game run well on my phone's browser, but not when installed as an apk.

    By the way, I have just made some tests on other devices. Here is the result:

    Device | Play on browser | Play as apk app

    ASUS Zenfone 2 | Fine | Bad

    Samsung Galaxy S7 Edge | Fine | Fine

    Samsung Galaxy Tab 4 | Fine | Fine

    Samsung Galaxy S4 | Fine | Fine

    It seems that most of Samsung devices can run the game well as apk. I'm not sure with other labels due to lacking of devices of them.

  • LuisCGForte I do as you said but the result is the same, no matter it is a signed apk or debug apk. And now I'm sure it's because of webGL, when game objects with "SetColor" or "Tint" effects are not displayed correctly. Also, I found these two posts which are similar to my situation:

    However, no answer can be found.

    I would try testing on other devices to see if the same problem occurs.

  • Hi. My game runs well when I use remote preview mode and open it on my phone's browser. However, when I build it to debug apk file then install on the same phone, the game runs with very bad performance. I guess it's something relate to webGL, because I used to get the same problem when run it on my computer's browser, until I activate webGL on it. But this time, it's a apk file, and I dont know how to activate webGL for an application. Can anyone help?

    P/s: I've already checked on the "Enable webGL" on project setting tab, but it doesn't help.

  • I turn on the remote preview mode and open my game on a tab, then open another tab. If I separate these two tabs on two windows, then resize them so that I can see both of them on screen, the game still runs while not being focused. However, if the blank tab takes full screen, the game is paused.

  • Hi. How can I make my game still run while the game window/page/app is not focused on?

  • dop2000 Thank you! The family approach sounds good and easy to control. Do you have a generic way for managing layers and their respective groups? I'm thinking about some kinds of mapping from layer to group so that when we show/hide a layer, we also activate/deactivate its group without remembering the group's name. Also, when a new pop-up is shown, can we hide currently opening pop-up no matter what it is?

  • Hi everyone. I'm searching for a way to deal with GUI system in my game which includes buttons and pop-ups. At the moment, I'm using sprite with "Touch : On tap object" trigger for buttons. With pop-ups, I put each of them on a separated layer, and show/hide pop-ups by showing/hiding their own layers. However, I get some problems:

    1. Objects on a hidden layer can still trigger "On tap object". Therefore, I have to add one more condition which checks if the layer of tapped object is visible. This leads to my second problem.

    2. I don't know how to sum up this, so I would describe my situation. I have a pop-up named "Pause" which is shown when player taps Pause button, and another named "Game over" when the game ends. Each of them have a "Retry" button which is the same object type. These two are put at the same position on the screen. The event for this button is

    Touch: On Retry tapped AND System: retry.layer is visible -> retry action[/code:b4k8xgyz].
    The problem is when "Pause" pop-up is shown and player taps "Retry" button, nothing happen. Then I figure out that C3 has picked "retry" button of "game over" layer (which is above "pause" layer) and checked its layer (which is currently hidden "game over" layer) and seen the conditions are not matched. Now I have to put them at different positions but I think this is not a good solution.
    3. [b]Objects covered by others still trigger "On tap object"[/b]. My pause button, although is behind game over pop-up, still reacts when tapped then pause pop-up is shown. I therefore add one more condition that check game state to deal with it.
    4. [b]Layers are not set to initial state when restarting layout.[/b] After tapping retry button and restart the layout, my pop-up is still there while other objects are reset. So, more events had to be added.
    Those are what I experienced when working with GUI. Until now, I managed to solve all of them, but in not very good ways. Therefore, I want to know if there is a recommended solution for GUI system. I've searched for tutorials and other threads about this but cannot find any.
  • fredriksthlm

    Well, I think the normal FB plugin cant work on Facebook Instant Games.

    Happily, I heard that Ashley is working on FIG plugin. Hope it would come soon!

  • +1. Really need it right now!

  • Thank you! Didn't try that behavior.

  • Hi,

    In my game, my character would lose health and become invulnerable in 3 seconds if enemies touches him. My solution is using a boolean variable "IsVulnerable" and set it to false when the character collides with enemies. Then, I call System-> Wait for 3 seconds and set it to true again. The character also has the ability to create a shield that makes him invulnerable in 8 seconds, for which I use the same method. The problem is, if he touches enemies and get invulnerable, then activates his shield 1 second later, he would be vulnerable again after 2 seconds instead of 8 due to the action following "Wait for 3 seconds" action. To solve this, I'm looking for a way to discard the waiting process, but haven't found yet. Is it possible?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • dop2000 Thank you! That seems a little overkill, but the only one possible. I wonder why C3 devs don't make an action that directly sets "bounce of solid" property. That would be much simpler.