jobel's Forum Posts

  • newt the problem is if it looks like this:

    X_X_X
    X_X__
    X_X__
    ____O
    
    

    if you were selected on the O and hit UP you'd want to go all the way to the top X in that column.

    but in this case:

    X_X__ 
    X_X__
    X_X__
    ____O
    
    

    UP would go to the bottom right X

    EDIT nevermind.. this stupid website is so horrible you can't make fixed width text.. pain in the ass..

  • Hi,

    does anyone have any clear ideas on how to use the arrow keys to select from a randomly generated grid?

    I haven't attempted it yet, but here is the version where I select each cell of the grid - now I just want to be able to hop over the pieces that aren't there.

    It seems really difficult with lots of checks, but I'm wondering if there is a simpler way. Maybe with an array or figuring out the distance.. I know the arrow keys aren't a great nav tool, but I'm thinking of using the D-pad on a game controller so its the same.

    I really want it to snap to each piece. I was thinking of potentially getting the nearest sprite in the angle that was keyed maybe?

    Any suggestions?

    drive.google.com/file/d/1oysENRrUf7cTN8dmKZsRirEFhTOmDMbM/view

    Tagged:

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • R0J0hound

    demoman.net

    wow.. thanks, that's a really cool interactive demo!

  • R0J0hound oh sorry.. I always mess up the Google Link to be share by all

    drive.google.com/file/d/11PwA8PwbRUBSSaoXX2NLacA5lmCFFIBG/view

  • I need a link on learning vector math with cos and sin... does anyone know a good source for this kind of math specifically geared for gamedev?

    EDIT:

    youtube.com/watch

    doesn't really help in the now.. but it is something I need to study - I seriously hate not understanding it.

  • R0J0hound

    I'm so confused...

    here's what I have so far... I'd like to do it with 2 events: set position and set angle

    drive.google.com/file/d/11PwA8PwbRUBSSaoXX2NLacA5lmCFFIBG/view

    drive.google.com/open

  • Rhindon I don't think anything would ever make layers unnecessary, to my point you can add effects on different layers - for that alone would never stop anyone from using layers. Z elevation is only visual.

  • R0J0hound thanks!

    I guess I was over thinking it...I thought it was going to be something like this:

    x_pin = Sprite.x - 50 * cos(Sprite.angle)
    y_pin = Sprite.y + 50 * sin(Sprite.angle)
    
    Every tick set position SpritePin to x=x_pin y=y_pin
    

    although this code wasn't working right.. but I think maybe it could?

  • Hi, I'm wondering what the math is to perform Pin Position & Angle with just events (not using the Pin Behavior). i.e. Set Position etc...

    I'm sure someone on here has done it! thanks!

  • sizcoz good job.. that works! I knew there had to be a simpler way!

    yeah AllanR good idea since it works in C2 it might just be an oversight in C3.. thanks for doing that!

  • yeah I have no idea how the blur would look..

    is there a reason you don't want to use more layers?? I don't think there's any kind of performance hit - maybe with the web effects.. but still it could be optimized.

  • yeah that's probably good advice, thanks for looking into it!

  • AllanR

    try turning Sampling to Nearest and watch the SpriteFont do extra movement. What is happening there? do you think it has to do with pixel rounding for spritefonts?

  • but you also need the art that goes on top of the base assets... I'm not sure I totally understand what your program does? is it just a recolor?

  • AllanR excellent... I thought that the width/height of the sprite would just change the box not the text like Sine does for size... cool!

    still though, triple nested events for a simple movement. This should really be a Behavior if I ever saw a need!

    No I only wanted half of the Sine's cycle. Normally a Sine starts at zero and goes to 100 then goes down to -100 and back to 0 for a whole cycle. I only wanted the 0-100-0 bit. you got it right in your example.