Jump to content
Mike Harris

Following a track???

Recommended Posts

Posted (edited)

I have delved in very basic logic on mixing the sprites with the tile patterns.
Until now I have used a small routine just to detect walls.

What is really puzzling is how easy it seems when looking at old video games how they have characters following along tracks such as Pepper 2.
I was recently looking at Blasto for the TI99 and if you watch the tank it looks like it is on a track to keep it aligned with the mines and such.

Can someone elaborate or share a bit of code that explains this?

Once again I find myself asking tough, advanced questions that you can't find in a classroom.
If there was a manual put out by real game programmers that explained all of this then I would buy it.
But it seems that game programmers keep their wining formulas close to the chest.
So until it is released then I have to ask.

Edited by Mike Harris

Share this post


Link to post
Share on other sites

has a step by step design for intybasic for a donkeykong clone which climbs ladders & follow girder tracks. 

 

an easy way to do this is set up a table of points to direct you sprite towards. when it reaches a point get the next point from the table and then it will move towards that one

 

it's like connect the dots

 

so a track point 1

00,00

if sprites is at 0,0 then get track point 2

15,0

when you get to track point 2 you get rack point 3 etc. and you can loop it back to the original point if you wish start all over

 

curves just require more points

  • Like 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...