Solarus-Games English Forum

Solarus => Development => Topic started by: Yruama on December 09, 2014, 01:48:27 PM

Title: Sidemap - Scrolling
Post by: Yruama on December 09, 2014, 01:48:27 PM
Hey' !

If i have 3 maps like this :

+--+--+
| A | B |
+------+
|    C   |
+------+

How can i use Scrolling - Side of the map for my teleportation ?
If i use it on the map A on C it works, but if i use it on map B on C my char go at the same position like my Map A.

If i use scrolling with teleportation point (A to B) the scrolling is like i'm goind top. How can i change it for scroll rigth to left

Thanks
Title: Re: Sidemap - Scrolling
Post by: Christopho on December 09, 2014, 02:31:19 PM
Use the "Location" property of maps to do this.
For example, if map A is at 0,0 and has a size of 320x240, set the location of map B to 320,0 and the location of map C to 0,240.
I hope it helps!
Title: Re: Sidemap - Scrolling
Post by: Yruama on December 09, 2014, 08:43:03 PM
It works.

Merci !