Geo's Recent Forum Activity

  • 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

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 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.

  • Thanks. Looking forward to the fix then :)

  • Hey guys,

    I'm playing around with the physics. I want to dynamically create some scenery, on start of layout.

    I have a rectangle sprite called "ground", I placed its "Origin" in the top left corner. I want to resize this ground sprite so that it covers the lower part of the screen.

    But what I found is that when I add the Physics behavior, the origin seems not to be taken into account when placing objects at X/Y coordinates.

    Is this the expected behavior? (I tried to find references on this site, but could not).

    For exemplification here's a simple capx with the minimum to explain this.

    I create 2 sprites dynamically, GroundWithPhysics and GroundWithoutPhysics. They have the same origin (top left corner), but they get placed differently on the X axis (perhaps on the Y axis too).

    Is this expected? If yes, why?

    Thanks in advance.

    Edit: Forgot the capx link: mediafire.com

  • Thanks Mipey! That sounds like it should work, but I was hoping for some more automatic solution, i.e. less manual steps when changing the story text.

    Any other ideas?

Geo's avatar

Geo

Member since 16 Dec, 2011

None one is following Geo yet!

Trophy Case

  • 13-Year Club
  • Email Verified

Progress

14/44
How to earn trophies