Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

[FIXED!] Camera Question


Steven M

Recommended Posts

1) What's the name of the the effect achieved when the player walks in one direction from A to B to A again (Start from A > walk right to B > reach A > reach B again > etc) and the camera keeps scrolling in one direction without any sudden snapbacks? (If anyone here has played Retro Game Challenge, you'll know what I mean - you see it in the Haggle Man games.)

EDIT: http://gamevideos.1up.com/video/id/22649 (gameplay video - better example)

2) How would you achieve said effect in MMF?

Link to comment
Share on other sites

I believe the effect you're referring to is called "wraparound." It's easier to recognize in games like Pac-Man, Bubble Bobble, and Mario Bros.

As for how you'd go about doing that, I don't yet know. I would guess it would be something like "when object overlaps the right side of the frame, make it reappear on the left side of the frame." I'm pretty sure it has something to do with the sides of the frame, though.

Link to comment
Share on other sites

kaiyokan3k: Hiya. You busy?
Auto response from LarkSS: Í
LarkSS: Steven M?
kaiyokan3k: Yep
LarkSS: Heh, sup.
LarkSS: Twas busy until now.
kaiyokan3k: That's alright. I was going to ask you
something, but I posted a thread on SFGHQ instead.
http://sonicunited.org/hsfqmtif/forum/showthread.php?t=5306

kaiyokan3k: Didn't really know who else to turn to,
concerning fangame mechanics.
LarkSS: hrm
LarkSS: Trying to understand exactly what you want to do.
LarkSS: Should I google Haggle Man?
kaiyokan3k: It would probably help.
kaiyokan3k: Wait.
kaiyokan3k: Never mind. Sorry. Thought I could find a
video for it on YouTube, but apparently not.
LarkSS: Yeah, that's what I tried to do.
kaiyokan3k: http://gamevideos.1up.com/video/id/22649

LarkSS: lol jeez
LarkSS: the video has horrible frame rate for me.
kaiyokan3k: Same.
LarkSS: Hold on
LarkSS: I'll load it up on my school's laptop.
kaiyokan3k: Ok.
LarkSS: much better
LarkSS: but now it needs to buffer again.
LarkSS: It just seems like a normal camera.
LarkSS: Am I missing something?
LarkSS: oooh
LarkSS: I see it now.
LarkSS: Or I think so.
LarkSS: You're talking about when the camera scrolled to
that creature?
LarkSS: Or
LarkSS: guy in a red suit
kaiyokan3k: No, I mean the ninja guy walked past the 'A'
door twice.
LarkSS: oooooooh
LarkSS: The endless level?
kaiyokan3k: Exactly!

kaiyokan3k: ...is that what it's called?
LarkSS: Dude I was looking for the camera do to some sort
of trick the entire time. =P
kaiyokan3k: God I feel so stupid.
LarkSS: I'm not sure if it really has a name, but it's just a
matter of having the player actually wrap around the edges of
the level in a way that you can't tell.
LarkSS: Usually, you'd just make the area you want and
then a bit extra to the right. After you get to a certain point to
the right where the area is supposed to loop, you move the
player back along the X axis by the exact size of the area
that loops.

LarkSS: For example
LarkSS: if the area is 512 pixels wide before it tiles
LarkSS: then after the player gets to a certain position to the
right
LarkSS: set his X position back by 512.
LarkSS: If you do this correctly, he should go back to the
left side and make it appear that the level is repeating
forever.
LarkSS: You'd pretty much to the same for going left too.
kaiyokan3k: So there wouldn't be any problems if, for
example, the player was teleported -512 pixels, and then
immediately set off left? There'd be some space to the left of
the frame for the player to walk into?
LarkSS: Just make sure that if, for example, the level tiled
by 512 pixels, maybe make three copies side by side of that
so that when the player is supposed to wrap around the
level, he doesn't see the "end" right before he gets moved to
the other side.
LarkSS: lolol question pretty much answered by that last
thing I said =P
kaiyokan3k: Ha, fair enough.[/CODE]

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...