Vitae's Forum Posts

  • bump in hopes of R0j0hound replying. :P

  • I would like to be able to step through an array. Value by value. When I reach the end of the array I want to go back to the oldest.

    In my case I want Q to step back through the array and W to step forward in the array.

    <img src="http://s8.postimage.org/ucukhwd9h/asffffffff.png" border="0" />

    Haven't found any elegant solution to this. You can ignore the Pop back on X axis event in the screenshot. :)

  • Being a game developer both professionally and during my time off there are some things that I would like to see implemented in Construct. This is by no means a whine thread as I find Construct superior to all the other game making tools out there (MMF and Unity).

    MMF had some pretty sweet features that I'd like to see in Construct. The ability to use LUA for your projects as well as the debug feature. I won't go much in depth about the LUA feature as I think it is pretty self explanatory what it does but sometimes I find myself a bit limited using the "click-scripting". It might be a case of me just not knowing how to use construct that well yet but I would like see a support for LUA as it is a widely used scripting language that is very easy to get into.

    The debug feature in MMF was something that I really enjoyed. Instead of having to use text boxes to print the values of variables you could just use the debug box to see the values of all the variables and loops running in real time. This would be very useful, especially for arrays as they are very hard to keep track of in your head. :)

    3D support. As much as I love sprites sometimes I find myself wishing I could use 3D models. Mostly for background stuff. I realize that when it comes to models Construct could never compete with unity but the ability to use models from time to time would be pretty sweet.

  • Well... I got it working.

    For some reason changing the On Created event to an every Tick event seemed to work.

    Would have preferred to keep it as On Created, just for the sake of me not wanting to have stuff I don't need refreshed on every tick to actually get refreshed all the time.

  • That sort of worked. Problem is that the arrow is "lagging" behind. It seems to always be one action behind.

    Let's say I have no stones out. I place one stone. Nothing happens. I place another stone, the arrow moves to the first stone.

  • Right. Got it working after reading up a bit on the array section.

    Now I have a different problem I for the life of me can't figure out.

    I'd like to have an arrow above the oldest stone object. Once you destroy the oldest one I want it to move to next.

    At first I thought it would be easy.

    I ended up with something like this:

    <img src="http://s18.postimage.org/qh3fei20p/coccccck.png" border="0" />

    Not working at all. I can see the object I want to position not moving.

  • Ohhh!!!

    I should be looking in the Y axis then?

    How can I arrange this in the X axis instead?

    What I want to do is to insert each object in the X axia and step through it that way. Seems much more lika the way I would do it in LUA (I wish Construct had LUA support like MMF2).

  • My current scripting for setting up new objects into the array.

    <img src="http://s9.postimage.org/4yra74h5r/cock.png" border="0" />

  • Let's say I have an array called "NewArray".

    If I want to step through it one step each time the player presses Z. How would I go about doing this?

    Just tried:

    On X Pressed

    Object - Pick instance with UID NewArray.Back

    -Pop back on X axis

    No success. I've been trying to do this a couple of ways. Right now I'm thinking I would have to do it like this:

    On X Pressed

    Object - Pick instance with UID NewArray.Back(-GlobalAxisVariable)

    -Pop back on X axis

    -Add 1 to GlobalAxisVariable

  • I ended up using Kyatrics method as I think it will be easier to work if I end up building more on this idea. Thank you all for your help and fast replies. :)

  • Thanks, Kyatric. I'll have a go when I get back home. Stuck at work atm. :/

  • I'm yet to find a way to do this. :/

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • on key pressed

    ---+system compare: Sprite.Count>=2

    ---+System: pick instance 0 of sprite

    ------ sprite: destroy

    ---+every tick

    ------ system:create sprite

    Couldn't get this to work. Seemed to destroy the latest object I created and not the oldest.

    http://s12.postimage.org/sp6zoy1b1/coooooook.png

    In LUA I would add every object to a table and just get rid of the first entry in the table and sort the table again. but yea. No idea how to do it in construct 2.

  • Preferably I'd like to replace the oldest object with the player sprite.

  • I was looking at using an array for this but perhaps it's a bit too complicated?