I've really been messing around trying to get a metroid type camera that will just show one portion of the map and only scroll when exiting one of the four corners of the screen.
The thing is that I want to do this without using any sensor objects. I started doing it that way and it just got messy plus the game I'm working on uses mass amounts of enemies at once so I'm trying to avoid using any active objects I don't have to.
Don't worry about giving a complex method of doing it either, I've been using clickteam products for years now and will be able to handle it. Thanks in advanced guys. =D
Oh one more thing. I dont need the camera to actually scroll like in Zelda or anything. It can just jump over as if it were a new frame. So dont worry about explaining how to do that.
Thanks a million dude, works perfectly.
I must admit that I have absolutely no clue why it works, cant actually make any sense of the code.
But then again, I've failed math class every year since 5th Grade so that probably has something to do with it.
It's the same principle behind snapping to grid co-ordinates. It just snaps the camera to a massive grid where each cell is the size of the visible play area
There are 10 types of people in the world: Those who understand binary and those who don't.
but... I don't remember Metroid scrolling screen-by-screen... most places in the game had smooth horizontal or vertical scrolling... so I don't get the question? Even though it's apparently been answered now?
metroid for the nes is similar to the scrolling in a link to the past. it smooth scrolls within a certain area and frame scrolls when you leave the area. doing that will take a bit more work to accomplish. more than one event anyways. probably not too complicated.
Maybe what he's talking about is to not have the camera move unless a specific secret is discovered?
Ex. There are some places in NES Metroid where it looks like you're up against a wall, the border of the screen and can't go any further. Then when you bomb or shoot a brick and roll through it, the camera then scrolls along with you revealing the new secret room.
I guess?
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!