ExodusJohnson's Forum Posts

  • 9 posts
  • Thanks a lot oosyrag that's brilliant!

    Certainly helping me to understand arrays a little better, it seems to work almost perfectly except if you move the first block(light green) into another position and then carry on cycling through, once it gets to the last one on the right and should go back to the first block on the left it goes back to the light green block(regardless of it's position) and then to the first on the left. Do you know why this is? Easy fix?

    This is only a problem going Left to Right as well, not the other way.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thanks, that makes sense.

    I've implemented that, so it resets the array on a key press(for now N on keyboard and B on xbox controller).

    I'm still facing the same issue as before though where once I've moved a block to a different position and I hit left/right to select the next block it goes to the block that would have been on it's left/right in it's original position.

    How can I refresh the CurrentSelection variable so that it updates to the new position?

    Latest Capx: https://www.dropbox.com/s/24ma6wohueukg ... .capx?dl=0

    Thanks

  • Hi,

    Ok, my friend who is working on this in a slightly different way has hit a bit of a wall and we can't seem to fix it.

    Can someone please take a look at this capx and tell us why the item selector will cycle right but not left? We thought we'd done what was needed to get that working...

    You'll need an xbox controller plugged in to test it.

    https://www.dropbox.com/s/qsucciirtax7fco/ObjectSelectionLeftNotWorking.capx?dl=0

    Again, any help at all much appreciated

  • Hi, thanks! Wish I fully understood arrays.

    This works great, but what I want to do as well is once one of the blocks is selected(overlapped by the selector) I'd like to enable the 8 directional movement for that sprite so I can move it anywhere on the screen. Then when I hit left/right on the keyboard I'd like it select the sprite on the left/right of current position of the selector, rather than the sprite on the left/right of the original position, not sure if this can be done as they are stored in the array in a certain order? Any way to refresh the order of items in the array after I've moved one of the sprites?

    e.g.

    If I have the sprites set up as below, green is selected and I hit the right key it'll move along: Green > Blue > Pink > Yellow.

    Green -- Blue -- Pink -- Yellow

    If I select the green sprite and drag it across so it's between the pink and yellow sprites, when I hit the right arrow key it currently moves the selector to blue, I'd like it to move to Yellow. Does that make sense?

    Thanks

  • Hi,

    I'm not really sure what you mean on the above(I'm still quite new to construct).

    Could you expand a little bit?

    I've attached a better Capx.

    https://www.dropbox.com/s/zdzfzbnngzsikct/SelectionTest.capx?dl=0

    What I would like is for the yellow sprite called Selecter to snap to the nearest sprite.

    So when I hit the Left Arrow/Left bumper button on the keyboard it snaps to nearest sprite on the left and when I hit the Right Arrow/Right bumper button on the keyboard it snaps to nearest sprite on the right.

    Image: http://i.imgur.com/wsFHRwO.png

  • Hi,

    I'm working on a new game and I'm a bit stumped.

    What I want to be able to do is select from a group of items/sprites using a gamepad and then drag and drop the item into a position.

    This is obviously easy to do using the drag and drop behaviour and using a mouse but I'm having no luck at all using a game pad, what I don't want to do is have a cursor that's controlled by the analog stick as this is slow and clunky.

    This is a capx of what I have so far working with the mouse. https://www.dropbox.com/s/z3lqh84m5196vyj/GamepadItemSelection.capx?dl=0

    Any help at all would be appreciated as this is really getting to me, ha!

  • Hi all,

    I'm making an Auto runner, the way it works at the moment is, the bullet speed of all the platforms etc are set to a global variable called "Speed". this starts at 300 and is set to increase by X every X seconds, so say you've been playing for a while and your speed is up to 400 then you end up bumping into an enemy I want it to slow down back to 300 but not instantly, I want it to slow down gradually.

    The only way I can think of doing this is using System > Wait .2 secondsish > Set "speed". About 15 times or so to simulate the gradual reduction but this seems a bit stupid and I'm wondering if anyone knows of another way to do it?

    Thanks,

  • Ah, I've been messing with it for ages and figured it out, just needs tweaking a fair bit.

    Posting what I did just in case anyone else stumbles across this with the same issue.

    If anyone does look at this can suggest any improvements then please do

  • Hi guys,

    For my first game I'm trying to make an auto runner but I'm having a bit of trouble.

    As it's my first I'm basing it off the auto runner example in construct which is great.

    I want:

    Random sized platforms to be generated - The example does this but it just tiles one block image so it cuts off halfway through the last block etc.

    I would like to specify a beginning, end and middle(repeating) blocks, like these:

    Does anyone know how I can adjust the code in the template to do this?

    Additionally, I would like this to be buildings but I've not decided yet, as it'll have windows when the building is generated, say each block is specific sizes:

    First: 40px

    Middle repeatable with window: 40px

    Last: 40px

    I'd need the building to be generated not only in a random full length but only in multiples of 40, is this possible?

    Hope someone can help as this is battering my head.

    Thanks!

  • 9 posts