baschit's Forum Posts

  • 11 posts
  • I love you. Thank you.

  • <img src="http://i.imgur.com/Ta3hiX4.png12044" border="0" />

    Example of the event sheet

    Further info - All I'm trying to achieve is continue to the next X value in the array. Is there anything along the lines of a ++ operator in construct?

  • It shouldn't be this hard and the documentation in the manual is frustrating.

    On System, start of layout, declaring array, set value at 0 to "apples", set value at 1 to "pears", set value at 2 to "rabbits"

    On System, start of layout, declare text box, set text value to declaredArray.At(0)

    Touch, on any touched end, declare text box, set text value to declaredArray.CurX+1

    and nothing. just changes it from the text value of apples, to 1.

    what am i doing wrong?

  • That unfortunately won't work with a gamepad, which is the problem I'm having. Making it work with keyboard isn't what I've asked for help with. Thanks for the attempt though.

  • I've been trying to do something like this for days, but with a gamepad. Is this impossible?

  • I was thinking the same thing except that in this instance I am using analog sticks. Maybe I'll have to mess with custom controls or something. The only other thing I was thinking of was to give the directions values instead of just greater than zero, but I'm not sure if that would work entirely either.

  • https://www.dropbox.com/s/c2o2dat2u66o39o/2d%20test%20rpg.capx

    Here's the capx file for anyone interested in messing with it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I had previously posted this in General on accident with no real advice so I figure I would ask here since mods haven't moved it over yet. I'll try to explain what I am attempting to do as simply as possible.

    I am controlling a player sprite with a gamepad. The sprite has eight sequences of animation for all eight directions. The problems arises as soon as I start adding diagonal direction. I have managed to get as far as making the top arc work (left, left-up, up, up-right, right) and can also add movement and correct animation for just down. down-right and down-left break on their own, and break anything else calling "right" or "left". I'm pretty sure this has to be an issue with the way I am creating my events.

    This is my latest working event page:

    <img src="http://i.imgur.com/t2pNzkr.png" border="0" />

    Event 2 is simply where I store previous direction variable on stop to play standing animation.

    Any help would be greatly appreciate it. This issue haunted my dreams last night.

    As a sidenote and completely unrelated - anyone know why y axis < 0 comes out to positive movement (ie - up)?

  • So I've made some progress but I can only get half the range working using these events. The top directions work, but any time I try to add Down-Left or Down-Right, something breaks. Any thoughts?

    <img src="http://i.imgur.com/JYUwEbT.png" border="0" />

  • I found this piece of info here -

    scirra.com/forum/sprite-movement-8-dir-troubles_topic47201.html

    Anyone know how I would add controller support?

  • *Wow, I could've sworn I had clicked on the How Do I section - if a mod could please move, first post and it was a blunder*

    Hey everyone,

    Did a few searches and didn't quite find what I'm aiming for.

    My 2d sprite has animation for all 8 directions (cardinal 4 and diagonals), and all have been set up properly in its animations. However, the problem I'm having is that the diagonal movement animation doesn't play through. It is set to loop.

    The event handling I figured would work is the following -

    <img src="http://i.imgur.com/2fs4Xc1.png" border="0" />

    I'm thinking the issue is with the bottom event setup. Perhaps I'm interrupting the animation using both left and up? I'm kind of lost.

    Thoughts?

    Many thanks,

    Basch

  • 11 posts