ZiggitySwiggity's Forum Posts

  • 7 posts
  • I dont understand how I am suppose to put that into the event sheet.

    So you do mean put Wolf.8Direction.MovingAngle into a global variable every tic and while hes moving.

    Then check if the number is between two numbers?

    OR

    How do I check if Wolf.8Direction.MovingAngle is between certain angle/numbers? The only options for 8D movement are if he is moving or compare speed.

    Thank you for your help, I know this is probably super simple and I'm messing something simple up...

  • Ahhh that's what I was missing.

    Sorry for all these basic question but I really appreciate the help!

    So the numbers that the expression Player.8Direction.MovingAngle will give me will be the angle in numbers correct? But when I try and put my Global number, CurrentAngle to Player.8Direction.MovingAngle and display it in text so I can make sure I have the right numbers for my animation, it tells me "NaN" in the text box. I thought it was a integer not string.

    I guess what I'm asking is what is the variable Ill be getting if I'm moving, Right,Left,Up,Down,ect?

    Thank again <3

  • That worked perfect except I am having another issue.

    So it now knows which direction I am facing but because it sets the angle on each turn its rotation my animations that I have already made to face the proper angle. But if I turn off set angle, it won't register the angle. Any tips?

    Example:

    On up, the up animation now turns left

    On down, the down animation now turns left

    On left, the left animation now turns right

    Is the fix to change my animations?

    Im using this wolf template:

    spriters-resource.com/pc_computer/puzzlequest/sheet/13146

    I hope this makes sense.

    Thank you for the help!

  • Hello!

    How do I set the animation for diagonal movement without it also registering and interrupted by my plain old side movements?

  • Yep you can set angle to random(x,y) to pick from numbers between x and y.

    Thank you very much!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Sprite on collision with wall > set angle

    I'm not sure what you mean by having it both random and easy to predict at the same time.

    What I meant by random and easy to predict are like certain parameters for example,

    When object his wall

    Angle changes between 30-50 degrees.

    I believe what I'm asking is if that's possible?

    Thank you for the answer, the first answer for me means I must have just done something wrong with my set angle action ill try and debug that.

    New question is, Can I set the angle to a range of numbers?

  • I hope this is a quite simple question.

    What is the easiest way to create a sprite that when it collides with the wall, it changes its direction either 40 degrees or a random direction the other way. Id like it to be consistent and somewhat easy to predict their direction so you can think out a path through multiple of these sprites.

    My goal is to create a little top down maze with random enemies you must run through, bouncing off the walls creating a random challenge to pass.

    What I know. I understand the basics but I am still quite new to the program so I wanted to ask the community for the fastest way for me to try and implement this into my game.

    Thank a million for any help <3

  • 7 posts