Hi, so I've made a few platformers in scratch so far (with scrolling) but I've decided that something needs to be added. I first thought of temple run, these demonic apes chase you the whole way through. So I figured that that was a good idea. Here's the problem I don't know how the character that is chasing my character will make it through the course on its own. Since this is practically impossible without some elite artificial intelligence brain I thought that having the enemy character copy the friendly characters actions would make it so it could get through the course without fail. Or if you fall down... it doesn't matter cause your dead.
Summary: a character that will copy my character's actions 2 seconds after my character has already done them. Is it possible?
Last edited by bullelk12 (2012-07-24 00:37:43)
Offline
It is possible indeed. You could add the information to a list, including the position and the time. Then when time = time + 2, move to the recorded position. Its difficult to give the script as I'm not aware of how your game works ( Temple run for example is 3d ).
Offline