Mirage Source
http://www.miragesource.net/forums/

Sliding Map Transition
http://www.miragesource.net/forums/viewtopic.php?f=210&t=4178
Page 1 of 4

Author:  Acruno [ Mon Aug 18, 2008 8:20 pm ]
Post subject:  Sliding Map Transition

Sliding Map Transition
ORIGINAL CODE BY DAVE
Difficulty: 3/5 - Requires understanding

Backup your source!

Tutorial Subject to Change with new versions of MS4

Example: http://www.youtube.com/watch?v=wh77gAUOKSE
(Note: Game featured is Merrimint)

[Edit by Dave: tutorial removed because it was copy and paste]
[Edit by Robin: tutorial removed because it was just images with code in them]

Author:  Robin [ Mon Aug 18, 2008 8:33 pm ]
Post subject:  Re: Sliding Map Transition

:roll:

Nice, just make it C&P.

At least write it out so people learn something from it.

Author:  Acruno [ Mon Aug 18, 2008 8:38 pm ]
Post subject:  Re: Sliding Map Transition

Sorry, I meant to mention, I will add explanations tomorrow, I just wanted to actually get it up first, a bit busy IRL at the moment :roll:

Author:  Lea [ Mon Aug 18, 2008 8:54 pm ]
Post subject:  Re: Sliding Map Transition

A lot of that code is unnecessary (like copymemory) and the comments I added were just there because that's what I did first, and then changed it.

So clean it up and make it seem somewhat intelligent, instead of just saying exactly what the svn patch says.

Author:  TehGrunt [ Wed Aug 20, 2008 2:11 pm ]
Post subject:  Re: Sliding Map Transition

Seems to me like it needs Optimized Surfaces, because it uses MiddleBuffer, LowerBuffer, and UpperBuffer.

Then again, I'm probably wrong. :|

Author:  Robin [ Wed Aug 20, 2008 2:22 pm ]
Post subject:  Re: Sliding Map Transition

It's built for the latest version of Mirage, which comes with optimised surfaces.

Author:  Acruno [ Wed Aug 20, 2008 2:23 pm ]
Post subject:  Re: Sliding Map Transition

It works fine with a Vanilla MS3.43, not sure what DFA and Dave has changed/removed since then though.

Author:  GIAKEN [ Wed Aug 20, 2008 2:35 pm ]
Post subject:  Re: Sliding Map Transition

Wouldn't it be better to just move the map on the same layer instead of doing it on another one? It would be harder, however...I think?

Author:  Lea [ Wed Aug 20, 2008 2:46 pm ]
Post subject:  Re: Sliding Map Transition

I'd see no advantage to reverting to "the old way of doing things"

The entire map is only drawn once, then the appropriate sections are copied to the back buffer.

Author:  GIAKEN [ Wed Aug 20, 2008 2:48 pm ]
Post subject:  Re: Sliding Map Transition

Ah well I guess I just think of hard ways to do things. :P

Nice work, though.

Author:  Acruno [ Thu Aug 21, 2008 7:21 pm ]
Post subject:  Re: Sliding Map Transition

I've found a bug in the transition. When the map slides, it displays the tile at the top of the column that your tile is in, as opposed to the tile itself. I will have a look at the code and see what is wrong.

Author:  Lea [ Fri Aug 22, 2008 1:13 pm ]
Post subject:  Re: Sliding Map Transition

That bug must be because of the new MS version.

It works perfect in both my test bed, and in Merrimint.

Robin nearly has it working in Winds Whisper, too.

Author:  Lea [ Fri Aug 22, 2008 8:12 pm ]
Post subject:  Re: Sliding Map Transition

Anyways, in the MSE thread Acruno said he wouldn't make it a copy and paste tutorial. This is clearly a copy and paste tutorial, so I am going to (for once) exploit my moderator powers and remove it. It can be reposted in a not-copy-and-paste format if someone wants.

Author:  Rian [ Fri Aug 22, 2008 9:34 pm ]
Post subject:  Re: Sliding Map Transition

I support your decision.

Author:  Asrrin29 [ Fri Aug 22, 2008 10:33 pm ]
Post subject:  Re: Sliding Map Transition

I had a feeling that would happen, which is why I made a copy for personal use :P

not like I'm going to use it though, because I'm trying to get scrolling maps working on mine.

Author:  Rian [ Fri Aug 22, 2008 10:35 pm ]
Post subject:  Re: Sliding Map Transition

I made a copy of it too. I also don't intend to use it on my game (nor scrolling maps). Though I do have a project in mind that sliding maps would be use full for, I think I'm just gonna use MS4 (or whatever it's called these days)

Author:  wisefire [ Sun Aug 24, 2008 3:46 pm ]
Post subject:  Re: Sliding Map Transition

Damnett, I didn't get a copy of it.. Lol.

Author:  Robin [ Sun Aug 24, 2008 4:49 pm ]
Post subject:  Re: Sliding Map Transition

Asrrin29 wrote:
I had a feeling that would happen, which is why I made a copy for personal use :P

not like I'm going to use it though, because I'm trying to get scrolling maps working on mine.


You mean Dugor is.

Author:  Asrrin29 [ Sun Aug 24, 2008 6:43 pm ]
Post subject:  Re: Sliding Map Transition

he's trying to get scrolling maps working period, lol. once he gets it working in a blank MS, him and I will work on getting it into my game. But yes, he's been helping me a lot lately and doing an awesome job.

Author:  GIAKEN [ Sun Aug 24, 2008 7:37 pm ]
Post subject:  Re: Sliding Map Transition

Somebody PM this to me, please :?

Author:  Lea [ Sun Aug 24, 2008 8:42 pm ]
Post subject:  Re: Sliding Map Transition

lol srsly, it's really easy to do...

Author:  GIAKEN [ Sun Aug 24, 2008 8:50 pm ]
Post subject:  Re: Sliding Map Transition

I know I just want to see how you did it and since I've never tried to do it myself I don't know how to.

Author:  Matt [ Mon Aug 25, 2008 1:48 am ]
Post subject:  Re: Sliding Map Transition

Download the source that has it? It's really not that hard.

Author:  Robin [ Mon Aug 25, 2008 1:50 am ]
Post subject:  Re: Sliding Map Transition

Download the patch file and add it in? :|

Author:  GIAKEN [ Mon Aug 25, 2008 2:22 am ]
Post subject:  Re: Sliding Map Transition

It's not in the source yet besides the SVC patch (right?) and I can't get subversion to work yet.

Page 1 of 4 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/