• Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by greencoder

  1. Ahha, worked! Thanks @enpu and welcome back!
  2. NICE! So are you back? I saw a 50% off sale on IDE on the main webpage too! Is there a Panda3 in works?
  3. For some reason, this does not work as explained. When I try to save a module, it asks me for the location to save, I tried saving it in game and plugin folders but then module view doesn't filter also. I guess I am missing something here.
  4. And a bug fix from me :), line breaks have issues when the variable passed is a number (it says that split function is not available for this object) and fixed it like this (similar to typewriter code) on line 55 of systemtextplugin.js : lines = this.text.split('\n'); to lines = String(this.text).split('\n');
  5. Wow! Thanks for this works like a charm!
  6. Hello everyone, So if I use the default Text objects, every character has a drawcall for itself (I am assuming every character is considered as an image). And for system text, it seems like an object is considered as a single drawcall and not a character. For the UI based game I am working on, there are a lot of screens with a lot of texts, do you suggest to use Text or SystemText? I believe I can not have a new font for system text (probably a fixed set of fonts that I can use, and where can I find the list from? Regards GC
  7. To be honest, this concerns me more now, I have a UI based game and every engine handles UI differently, moving my project is going to be like moving a mountain ... I guess the best part of Panda 2 was the runtime build on the side without manually setting up a local server (consider I am a noob at it). Does any other engine have a toolchain like Panda 2? Scripting and one click to play the build kind of setup?
  8. We are a bit off topic on the subject of this thread, so I guess bringing together Panda 2 developers is useless because there is no one working on a game with Panda 2? Right?
  9. Heya everyone, I am silently working on a project with Panda2 but at times I feel like I better ask an experienced developer on the platform but then since the turn around time can be a bit long, I tend to dig deeper and find my own solutions. Finding my own solutions has a con, takes more time than needed. So I thought to ask whether anyone would be interested in joining a discord channel for Panda2 dev. Please let me know your thoughts.
  10. Yikes, I feel embarrassed for assuming things here, I assumed : Container takes its position based on the its children Children in Container has their position in world coordinates Both of them were wrong, of course, I don’t know why I assumed so. So I corrected both of it and then its working as intended : game.createScene('Main', { init: function() { var cont = new game.Container(); cont.interactive = true; cont.position.set(0,200); cont.hitArea = new game.Rectangle(100, 100); cont.interactive = true; = function() { cont.removeAll(); cont.remove(); }; cont.addTo(this.stage); var box = new game.Graphics(); box.fillColor = '#ff0000'; box.drawRect(0, 0, 100, 100); box.addTo(cont); } }); Correcting my stupidity now and closing this thread.
  11. Don't worry about this, got it working.
  12. Hey @Ninjadoodle, I am looking at solving the same problem, could you please share a code snippet on how you solved this? I tried masking a container but it doesn't seem to be working for me. Maybe I am missing some parenting.
  13. Thanks for the code snippet, I shall try that. I have been working on a system of my own, let me see whether I can reach to it. In the mean time, how do you deal with the mask? I am quite stuck in how to organize the layers to show the rows only in the table.
  14. Sorry, actually that doesn't work, if I use hitarea, it would be always taken from 0,0 . Belated holiday wishes @Stephan @Wolfsbane
  15. Ok have been experimenting a lot with this, and when combined with a container, the click again is triggered outside of the container area : game.createScene('Main', { init: function() { var box = new game.Graphics(); box.fillColor = '#ff0000'; box.drawRect(0, 0, 100, 100); box.position.set(0,200); var cont = new game.Container(); box.addTo(cont); cont.interactive = true; = function() { cont.removeAll(); cont.remove(); }; cont.addTo(this.stage); } }); @Stephan @Wolfsbane, any advice?
  16. Hey guys, So this is the next challenge up for me, how to approach creating a scrollable table with selectable rows in Panda? Any pointers would help. @enpu, @Stephan, @Wolfsbane, any expert advice? GC
  17. Sorry for the quick turn around and finding a solution for this issue, modified the code following code : Old Code : box.drawRect(0, 200, 100, 100); Modified Code : box.drawRect(0, 0, 100, 100); box.position.set(0,200); So we have to always use position.set if you need to position it correctly and not with drawrect, if it's interactive, definitely sounds like a bug.
  18. Hey guys, Hope someone has an explaination and solution for this, was in the middle of a project and had to create a gym level to test the problem and found it, here's the same code : game.createScene('Main', { init: function() { var box = new game.Graphics(); box.fillColor = '#ff0000'; box.drawRect(0, 200, 100, 100); box.interactive = true; = function() { box.remove(); }; box.addTo(this.stage); } }); If you click above the box, the box gets destroyed
  19. greencoder

    Essentials plugin

    Can the buttons created with essentials be manually scaled with x and y?
  20. An update about this thread, to sum it up, thanks @enpu, it works. For some reason, my PC's Panda IDE was an old version and it might have caused the issue. So here are the steps : Download latest panda IDE Update the engine to the latest in your project Download PlayFabClientApi.js from into the media folder Add game.addAsset('PlayFabClientApi.js') to your game.main Add the following snippet to test whether it works (I used it in init of game.main), ideally when you run this in the IDE or the browser, a player will be created on PlayFab : var loginRequest = { TitleId: '<your game ID>', CustomId: <custom ID>, CreateAccount: true }; PlayFabClientSDK.LoginWithCustomID(loginRequest, function(result, error) { if (!error) { console.log('PF ID: ' +; } else { console.log(error);} }); As a next step, I prefer to make PlayFabClientApi.js into a plugin, like the instantgames plugin and load the script dynamically and not bundle it with the package. I shall keep this thread updated if the plugin is a success, or maybe drop if off in the plugins sub forum. Once again, thanks @enpu! @Stephan, there you go, done! Time to start with the game, yay!
  21. @Stephan hehe! @Wolfsbane, ... UPDATE : Preloader is working as intended, no issues as I thought.
  22. Thanks for the pointers @Stephan. Tried a couple of prototypes, I believe the preloader is broken, on the platform, the game stays at 0% and then goes straight into the game without any progress update. Otherwise, yes its functioning as needed. Next step, playfab!
  23. So, answering your question : upload the old (working) game again and see if it succeeds or fails - it fails. I had to modify fbapp-config.json to this and the old prototype works : {"instant_games": { "custom_update_templates": { "play_turn": { "example":"Edgar played their move" } }, "platform_version":"RICH_GAMEPLAY", "orientation": "PORTRAIT", "override_web_orientation": "LANDSCAPE", "navigation_menu_version": "NAV_FLOATING" } } Now the only way to create a new instant game project with Panda2 is : Create your new project in Panda2 Add the instantgames plugin Add plugin to game.main .require add the following to game.config instantGames: { system: { resize: true } } Create a bundle folder with app display name (like on facebook without spaces) Add the above mentioned fbapp-config.json Copy the media folder of your project to this folder Add an index.html with <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Panda Game</title> <script type="text/javascript" src="game.min.js"></script> </head> <body> </body> </html> Export the project as "Minify" into the bundle folder, this should export the game.min.js Zip the bundle with same name as the facebook app display name without spaces and upload it The build should run, ideally. Gonna try out this a couple of times with different prototypes of mine now and will post back if it doesn't work.
  24. I downloaded a very old instant games build that Panda2 exported and it did contain fbapp-config. So I believe this file is created on export from Panda2, atleast with the current workflow. Since the export function doesn't work anymore due to the error, there is no zip created when I export to instant games. Let me try to export a zip and manually put the fbapp-config and see whether I can manually upload it to facebook.