What is the easiest way is to create a toroidal universe style map in MMF? For example, if a character were to walk far enough in one direction (say two screen widths) he/she would come back on the other side. The same would happen in all directions. If anyone remembers 'Dungeons & Dragons' for the Mattel Intelivision games console then you'll know exactly what I mean.
There's an option that you can set a condition for when the character leaves the play area, that the movement will loop, i.e he will appear at the otherside and start again.
Well, its not that hard to do anyways even if its not possible with custom movement (i think it is tho. not sure). compare x and y pos of the character.
e.g
Hero X Pos >400 - Set Hero Pos X = 0
Hero X Pos <1 - Set Hero Pox X = 399
Something of that sort. it should work for both x and y.
Make it bouncing ball movement, and set the speed to "0". Then create whatever custom movement you want and write:
*(object) leaves the play area
-(object) wrap around play area
Think that is the easiest way. Then you have to make the camera move smoothly and not make an ugly jump when you wrap around (if you have scrolling of course).
Thanks for the info but the main character will always be centered with the world/universe moving around him/her. I can do this part but not sure how to wrap the background (say, four times the screen size) and not the character. I take it that no one remembers 'Dungeons and Dragons' for the Intellivision then?
There was a question like this recently. You might be able to find the thread somewhere.
But a good way to do it is to make half a screen width extra at the edge of the world the same as half of the screen on the other edge. Then make the object move to the position on the other side of the level.
If done right it will be seamless.
i could make a tutorial because it's dead easy to make really. Even for someone useless at programming like me.
Andy... just tried it... looks good, many thanks. Earlier I had recovered something similar which I remember doing many years ago (I knew it was on disc somewhere). Mine works differently by the repositioning of quadrants of the universe rather than the character itself... it wasn't seamless like yours though unless I were to use a thick border... seems so obvious now, cheers.
Andy, something has just occurred to me... what happens if you have monsters roaming the maze/universe? I think they might appear and disappear depending on the location of the character as some screens are duplicated.
maybe you could make enemies move along with the player?
as in keeping track of how far away the enemy is from the player and whenever the player hits one of the edges the enemies position is changed to make it appear the same distance away.
Andy, I've also noticed that the faster the character moves through a screen at the edge the more noticeable the change. I couldn't find that earlier post that you mentioned... do you remember any words in that question... then I could do a search, cheers, Dave.