Stone-4's Recent Forum Activity

  • This isn't like the capx examples unfortunately. In the examples the motion is in relation to the center object, which moves and as it moves the motion path stays relative to the center.

  • I have been trying to create a series of orbits around moving centers where an object moves in a path relative to a moving object's position. I have a perfectly working circle and square motion from users from this site that work how I want all of the motions in my project to work.

    The examples are attached.

    This time I want a triangle motion that is just as smooth. I've tried path finding and I don't know how to edit JohnnySix's [attachment=0:wifh08tj][/attachment:wifh08tj] example to make a triangle. I'm smart, but I only had a highschool physics class and haven't gone past pre cal so no I don't really understand how to create a triangular motion like these examples. I've spent at least 4 hours on the circle motion, 2-4 hours on the square motion, and definitely 3-4 hours on the triangle motion. I almost made the triangle motion, but my best try won't stay on the triangle's path when I move it. I will keep trying, but please help if you can make a triangle motion that moves like the circle and square example!!!

  • I'm not the man xD. I give glory to God, Jesus Christ, that I was able to help you. I just figured this stuff out within the last week. I'm also building an endless runner type game for the first time. I hope to launch mine over several platforms with the diversity of Construct 2. God bless you on your endevors.

    Please pm me if you have any other questions since we are building the same type of game we are probably running into the same problems xD.

  • "Fixed Path" or "Travelling at Offset"

    Fixed Path is a position behavior that would work to create a fixed path that is positioned based on offset to a moving object.

    (Pathfinding only works well for paths that don't constantly move)

    This action would take these inputs:

    Direction: (360-0 degrees)

    Offset of What object:

    Travel what direction

    (angle input)

    at what offset - How far in position to the object away

    for how many pixels?

    Able to accept repeat how many times (default loop)

    Those last few steps would then be called point A.

    You could add up to 8 points.

    I am having the hardest time moving things along a path that moves relative to a center object.

    Path finding remembers old destinations and doesn't maintain a fixed path. Now here's a capx example of what I want this action to do. http://johnnysix.net/games/sqpi/sq.capx Without this capx example I'd probably still be stuck trying to get a square orbit around a moving center. All the credits to JohnnySix for that capx

    I don't know enough to go through the trouble of figuring this stuff out on my own. I've been trying to do a triangular motion that's just like this for hours. This behavior would save a ton of trial and error time.

  • Oh I've done this before.

    As you can see I just used the overlapping at offset condition. so when center is overlapped 100 pixels to the left of it the score increases by 1. You can use this condition multiple times to have many places where the object can be overlapped at offset.

    Don't forget you can use negative numbers for hitting the left and the right of the object (at offset).

  • Lordshiva1948 JohnnySix

    I was able to get the download JohnnySix gave. it is perfect! Thank you all so much!!

    Case SOLVED

  • Try Construct 3

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

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

    No I mean just like in this example. Except I want a square. The problem with path finding is that if I move the path the pathfinder looks for the old path not something new and constantly changing.

    JohnnySix

    Your site won't load on my comp because it says adult content. Could you just load the capx download?

  • I am still stuck after trying some path finding stuff. Can anyone tell me how to do this specific circular movement, but as square movement.

    If you test it you will see why pathfinding doesn't work. This example is exactly what I want except for a square. I don't actually get why it works. I was surprised to see the sin and cosine.

  • spongehammer

    I don't understand how to do what you've said. I don't have a 7zip program. What type of file is that?

  • I would like to create these "orbits" around a center sprite.

    The Center will move just like how you can touch move the center in the circle example, I've seen the circle and square movement patterns on Scirra Forums. These.capx are not my creations! The .png is though!

    Here's a nifty picture of what I hope to do! I really appreciate the help!

  • Thanks you were right. It is acting perfect now with just physics.

  • LittleStain

    Can I use platform and physics?

Stone-4's avatar

Stone-4

Member since 1 May, 2014

None one is following Stone-4 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies