Geo's Forum Posts

  • This is strange, sharing the link on facebook with user prompt should (generally) not require an app or log in. Please correct me if I'm wrong :)

    Any particular reason why app and login are required for link sharing with user prompt on facebook?

    Thanks.

  • It's my general understanding that I shouldn't need an app or permissions if I want to prompt the user to share a link on facebook. Or am I wrong?

    I looked at the facebook tutorial, but it's with an app. I don't want that.

    I simply want a button that, when clicked, should prompt the user to share a link on facebook.

    So I added a facebook object, but can't get it to work at all. Please advise <img src="smileys/smiley17.gif" border="0" align="middle"> what am I doing wrong.

    Here is capx: here

    Issues / questions:

    1. The facebook IsReady seems like it's never firing. Why? <img src="smileys/smiley1.gif" border="0" align="middle">

    2. Clicking the buttons does nothing. Why? <img src="smileys/smiley1.gif" border="0" align="middle">

    3. Do I need to call Facebook.login before calling share? On other sites I can share without "logging in".

    Thanks in advance.

  • Good idea, I'll modify the index.html once and then I won't touch it (I'll diff every now and then just in case, like when upgrading C2).

    Thanks.

  • OK Thanks, I guess I was hoping for more of an automatic way :-D, kind of like a project setting or export dialog setting "Center game canvas in browser window" and "Add cool gray border to game canvas". I mean, the code is already written for the preview, why not make it available in the exported game?

    I export and upload a lot because I need to test on the real server (some AJAX stuff at work), that's why I'm a bit reluctant to manual work :D but if it must be done, then it must be done. It would be nice to have it automatic though.

    I haven't looked closely at the SDK and ways to extend Construct 2, would it be possible for me to add those checkboxes to project settings or export dialog? (like some plugin, or add-on etc...)

    Thanks!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I like the way the Preview looks, i.e. centered in the browser and with a nice gray rounded-cornered border.

    But when I export the game and upload it, it doesn't look as good. It's only centered horizontally and there's no good looking gray border.

    How can I get the exported game to look as good?

    Thanks.

  • FWIW I was going to add an official drag+drop behavior at some point which also supports touch.

    By the way, is there an official roadmap or todo list somewhere? I can't find it. Just so we know what to expect in the not-so-distant future :)

    Thanks.

  • So just to make it clear, in case not everybody clicks the links through: Go here and click the star icon to vote for this bug getting fixed.

  • Good question, I'm interested in this too.

    Is there some way to invoke "external" javascript from within Construct 2? So that if I embed a browser control in an executable and use some Interop API to create JS objects on the browser, I could e.g. call "javascript: save (level, exp, inventory)" from within Construct 2, and get a callback in my (C#, Java etc) code? - from there I can save to disk "the old way".

    Thanks.

  • Thanks <img src="smileys/smiley1.gif" border="0" align="middle" /> Glad you find it useful.

  • You can use this plugin wherever you have game logic that requires the use of a LAST IN FIRST OUT data structure (aka Stack). For example, the Towers of Hanoi.

    You add data (numbers) to it, and the data goes to the "top" of the stack. You can only access the top of the stack, not the numbers below. More info: LIFO (Wikipedia)

  • Sorry I took so long. Here's a small demo. HTH. Geo.

    http://www.mediafire.com/?7mt9l6jzuyj063m

  • Thanks :) Done

  • EDIT May 8 2012: this plugin is obsolete, the functionality has been added to the official ARRAY plugin.

    ---------------------------------------------

    This is a simple plugin implementing a Last In First Out (LIFO) stack. Works with numbers.

    It has all basic stack operations: Push, Pop, Peek, IsEmpty.

    I needed it for a logical puzzle (Towers of Hanoi) and couldn't find one, so I implemented one. Took the array and modified it here and there.

    http://www.mediafire.com/?zf9bqcfnrg9bimg

    Feel free to further improve it!

    Cheers!

    Geo

  • Thanks Mipey, nice suggestions and great link. However I wanted a cleaner approach, and couldn't find a plugin.

    So I went ahead and created one myself :). Well, actually, transformed the array into a stack. But it's good enough.

    In case anybody wants to use LIFO STACK plugin, here it is:

    mediafire.com

    Please add it to the big list, if you think it will help others too.

    Thanks!

    Geo.

    PS: I <3 Construct 2 already. Great piece of work!

  • Hey guys,

    I'm trying to develop some "logical" puzzles. The array is cumbersome for my purposes. I've searched but could only find some implementations of stack (and queue) for Construct Classic.

    Is there an implementation available for Stack (LIFO) and Queue (FIFO) in Construct 2?

    Thanks.