0 Favourites

Trace Movement

This forum is currently in read-only mode.
  • Candescence directed me to this:

    http://www.sonicfangameshq.com/view.php?sec=6&id=1

    a 360 degree trace movement engine made in the games factory, it included the *.gam file so I was able to look at how it was done.

    Although it used 22 events, I had a go at remaking it in Construct and managed to do it in 6

    The principle is simple. Two 'detectors' come out the left and right of your character and shoot off downwards. The angle of your character is then determined by the angle of one 'detector' to the other. Finally, you move your character up or down so they are standing on top of the ground. However 'down' and 'up' are in relation to the angle the player is at.

    Quite a simple and eligant system really.

    With these new method in mind, I'll make some additions to the 'custom movement' so such functionality can be available in a much easier way.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Very nice.

    There is a bug: keep on moving right and you'll see, I don't know how to explain.

  • Very cool

    But yeah, I see the bug that Gen is talking about. It looks like if it drops frame the markers can leave the track. Still, that should be fixable with events. Anyway, this is a pretty sweet example

  • Looks good. One point, the markers get buggy when you get to the shark fin, that little hill at the bottom that's close to 90 degrees. If you stay there too long they loose contact and you can hover off.

    Making the pixel distance smaller seems to help, but there's still a point where it looses contact

    Edit oops yeah wut he said

  • ah yeah that corner is a bit too sharp for the trace to handle. If the distance wasn't 32 and more like 16 it would probably handle it fine. Also the faster it moves, the more likely it is to 'come off the rails'. A better system would perform the angle evaluation while moving in sub steps...so if you move 10 pixels to the right it actually only moves say 2 pixels at a time.

    *edit* lol when i clicked submit it said 'u might want to review the new post'...then i clicked submit again and it said the same thing...2 people posting within seconds of each other haha

  • works the same way as a raster gfx normal finder i had made a while ago

  • works the same way as a raster gfx normal finder i had made a while ago

    And Soldjahboy Tonks have similair thing.

  • Hmm.

    Doesn't want to run for me for some reason.

    "Temp.exe has...etc" error message.

    Looks good though.

    Sponge.

  • Holy hell, that's awesome. If anyone can do Sonic-style jumping and acceleration as well, we can more or less make Sonic fan games out the wazoo! Wait, would this thing be compatible with jumping and stuff?

    Also, with these custom movement additions, maybe you can also make the movement more accurate as well, considering that shark fin bug?

  • Hmm.

    Doesn't want to run for me for some reason.

    "Temp.exe has...etc" error message.

    Looks good though.

    Sponge.

  • > works the same way as a raster gfx normal finder i had made a while ago

    >

    And Soldjahboy Tonks have similair thing.

    Had. I took it out and opted for physics since there was going to be too much work involved getting the detectors to work properly with the real-time deforming ground feature.

    It's pretty much the same thing though... I think David's version is made a little better than mine since it will still work if you are jumping etc.

    ~Sol

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)
Similar Topics Posts Views Last Post
Unread hot topic
233 22,268
TiAm's avatar
TiAm
Unread hot topic
52 17,432
bilgekaan's avatar
bilgekaan
Unread hot topic
0 Favourites
Path Movement Behavior
98 52,480
R0J0hound's avatar
R0J0hound