HOME | DD

psykopath — MER --time control game-- by-nc-nd

Published: 2007-02-10 03:46:26 +0000 UTC; Views: 2981; Favourites: 15; Downloads: 46
Redirect to original
Description EDIT: In a reply to a comment I said it only took me half an hour to do this. When I said that I thought I was replying on this . This actually took me probably about 6 total hours, spread over a week.

EDIT: I accidentally stuffed up the Game Over screen just before submitting it, but like I said its only an example of the concept, not a proper game.

This is not really a full game, its only 5 levels to show the concept of it, that being that you can rewind time and everything works properly.

There are bugs in the game, but they have nothing to do with the time rewinding. The ones I know of:
- backwards sliding through wall accidentally (rewind time to fix)
- wall kick can launch you through solid walls (I'd fix this if this was a real game)
- another one I'm not mentioning because it makes the game too easy
- ocassionally when you restart a game there will be an extra health bar floating randomly around (I know how to fix this, but last time I tried I accidentally killed all my code)

Controls:
Arrows - Move/Jump
Space - shoot
X - activate MER (rewind time)
e - turn rewinding effect on/off

You can do a wall kick by jumping towards a wall, then press way from the wall and jump. It may take some getting used to.

Just remember, if anything goes wrong that you're not sure about, REWIND TIME!
Related content
Comments: 33

9ufan [2014-06-20 21:52:55 +0000 UTC]

I keep trying just walks toward the button and closes the path shut

👍: 0 ⏩: 0

icky-banana-dude [2008-05-17 13:07:27 +0000 UTC]

The MER effect shouldn't be as intense, because even on good computers, it can still lag a bit. Also, I somehow managed to jump through walls, in the 2nd level, on the right side of the screen with the two soldiers. Other than that, it's okay.

👍: 0 ⏩: 0

Drexegar [2007-02-28 08:32:09 +0000 UTC]

this is an awesome concept! I wouldnt have no idea how to program this unless I programmed a whole buch of trackers. lol Excellent job!

👍: 0 ⏩: 1

psykopath In reply to Drexegar [2007-02-28 09:44:49 +0000 UTC]

Describe what you mean by 'trackers'. Cos I might just have done that....

👍: 0 ⏩: 1

Drexegar In reply to psykopath [2007-02-28 19:17:17 +0000 UTC]

well let me see, I would make a varible for the jump, and when he moves left and right and for bullets. With these varibles whenever a button is released or an action is finished, i would then store those varibles in a box that is recording each action (kind of how a fighting game records you inputs) those box would be on a timeline, with the bullets from enemies, energy hit, item grabs, etc.

So lets say the person does nothing for 12 frames then moves x+3 pixels per frame then jumps y-7 pixels per frame while moving x+3 pixels per frame and grabs 1 health item and then falls y+7 pixels per frame while moving x-3 pixels per frame.

When you start the rewind button all i have to do is tell flash to grab the varibles and do the oppisite, so lets say one varible is called "left and right", the other "up and down", and the other is an "health item".

I make a little line on the time line so when it collides backwards it will collide with the boxes and read off the vaules so when I do a hit test Ill tell it to control the player and disable the controls too.

so from there I just change all the + into - and vise versa and the character and everything should run backwards.

Now I hope you can picture that I know I didnt explain too much in detail but this is coming from my head, If I took the time to program it I would probaly make some changes along the way. But its possible =^_^=.

👍: 0 ⏩: 1

psykopath In reply to Drexegar [2007-03-01 04:48:20 +0000 UTC]

That sound afirly complicated-ish. What I did is have a "manager" class, with three lists. One list for enemies and player, one for bullets and health, one for 'other objects' (doors etc). Everyframe it stores information about these objects into an array, then when rewinding it goes back through the array and puts things back to where the recorded information says they are. So, for the player it records: _x, _y, isJumping, isFalling, health and sets these back to where they were. Also have a list for objects being created (bullets being shot), and objects being destroyed (health being collected).

👍: 0 ⏩: 1

Drexegar In reply to psykopath [2007-03-03 05:13:08 +0000 UTC]

Ahh cool, and to be honest I dont have too much programming language I use graphics and boxes push here and there to do all my programming, I havent been able to grasp more or actionscripting. I need to learn some arrays lol.

👍: 0 ⏩: 0

Pi-Tec [2007-02-17 12:43:24 +0000 UTC]

Great idea, reminds me of Prince of Persia: Sands of Time.

👍: 0 ⏩: 0

JohnJensen [2007-02-14 11:50:03 +0000 UTC]

Just asking, what type of action script did you use for the MER?

👍: 0 ⏩: 1

psykopath In reply to JohnJensen [2007-02-15 00:27:52 +0000 UTC]

That question doesn't really make sense. Do you mean did I use AS2, or how do I make it work, or what?

👍: 0 ⏩: 1

JohnJensen In reply to psykopath [2007-02-15 10:20:53 +0000 UTC]

I mean, if it was some sort of Physics or what?

👍: 0 ⏩: 1

psykopath In reply to JohnJensen [2007-02-15 11:11:47 +0000 UTC]

Theres not really any physics for rewinding time
Its just recording where each thing is into an array, then when rewindning look up where the thing swere and put them there.

👍: 0 ⏩: 3

JohnJensen In reply to psykopath [2008-12-01 17:35:16 +0000 UTC]

Teehee, my nooby days where I didn't know what an array were.

👍: 0 ⏩: 0

JohnJensen In reply to psykopath [2007-03-03 16:44:26 +0000 UTC]

It's like the script records EVERYTHING that everyone and each thing does! XD

👍: 0 ⏩: 0

JohnJensen In reply to psykopath [2007-02-15 12:20:20 +0000 UTC]

👍: 0 ⏩: 0

JohnJensen [2007-02-13 10:27:33 +0000 UTC]

Wow.

That time script is awesome!

Awesome game

👍: 0 ⏩: 1

psykopath In reply to JohnJensen [2007-02-14 07:43:39 +0000 UTC]

Thanks

👍: 0 ⏩: 0

Shaddownet [2007-02-11 02:04:22 +0000 UTC]

CONGRATULATIONS! YOU FAILED

👍: 0 ⏩: 2

psykopath In reply to Shaddownet [2007-02-11 04:34:14 +0000 UTC]

Oh, it does. Well....oops.

👍: 0 ⏩: 0

psykopath In reply to Shaddownet [2007-02-11 04:32:40 +0000 UTC]

It doesnt really say that does it?

👍: 0 ⏩: 0

G2B [2007-02-10 22:40:57 +0000 UTC]

this is pretty damn good and the rewind idea is pretty good. Also your back story to it is also pretty original considering the rewind thing has been done before(prince of persia) although I can't recall it being done in a flash game to date. I hope my game for class comes out half as good as this.

👍: 0 ⏩: 0

ripe-cheese [2007-02-10 14:29:13 +0000 UTC]

luv it great job!!!

👍: 0 ⏩: 0

awesty [2007-02-10 06:38:06 +0000 UTC]

awesome work@

fix those bugs and add a few more levels and it will be on the front page on NG

👍: 0 ⏩: 0

swerno092 [2007-02-10 04:41:33 +0000 UTC]

Very nice, nut i think you should fix the buggs in the
MER buffer, but aside from that very nice ^_^ whered u get the actgion script for this?

👍: 0 ⏩: 1

psykopath In reply to swerno092 [2007-02-10 08:17:20 +0000 UTC]

I made the whole thing myself, as I do with all my work. What bugs in the MER buffer do you mean?

👍: 0 ⏩: 2

swerno092 In reply to psykopath [2007-02-10 08:19:02 +0000 UTC]

Dude i didnt say you didnt make it yourself, i mean whered u get the reference for the action script

👍: 0 ⏩: 1

psykopath In reply to swerno092 [2007-02-10 08:22:28 +0000 UTC]

What I meant by turning the effect off is that when its off it doesn't blur when you rewind. I didn;t mean that turning the effect of takes you back to where you were.
What do you mean by 'whered u get the reference for the action script'? I thought it all up myself and everything just came out of my original ideas.

👍: 0 ⏩: 1

swerno092 In reply to psykopath [2007-02-10 08:26:52 +0000 UTC]

Wow! Thats so cool! So that must mean your a genius! Cool! Good Luck ^_^ Idol! That must have took like forever i took a look at an action script dictionary in macromedia.com and lol! It was so hard i decided not to bother heck! It was too freaking difficult

👍: 0 ⏩: 1

psykopath In reply to swerno092 [2007-02-10 08:36:14 +0000 UTC]

There are people that can do more amazing things. It only took me half hour to do this though. You should check out this guy, he does some crazy stuff that I wish I could even understand [link]

👍: 0 ⏩: 1

swerno092 In reply to psykopath [2007-02-10 08:41:02 +0000 UTC]

Woah! This guys amazing, hes animations and wtf! He must realy be a flash addict!

👍: 0 ⏩: 0

swerno092 In reply to psykopath [2007-02-10 08:18:28 +0000 UTC]

Well in the ares where u gotta puch the button to close the door thing, i cant seem to use the rewind MER in both ways X and e it only fast forwards

👍: 0 ⏩: 0

ElectricRain [2007-02-10 04:14:31 +0000 UTC]

Cool concept. A bit buggy, but you've dress those issues. Another one I found is that the gaurds shoot at you even if there is a wall between you and them. But this isn't a "real" game so whatever. Nice rewind thing though, really cool!

👍: 0 ⏩: 1

psykopath In reply to ElectricRain [2007-02-10 08:18:13 +0000 UTC]

Yeh the AI is real cheap, if I put in a proper Line of Sight check then it would run slower than it already does. A lot of the current slowness is just because of the browser though.

👍: 0 ⏩: 0