level scroll back and foward options !!!

jonsilva

New member
hello
i was trying to to make a level scroll foward and back
without using the wait command so the player could move in a range of about 550 pixels back and foward...

ive found this command
scrollx  0  300
at  0

but the screen is not stoping at 300
anyone knows how to make it work ? and if scrollx can enable the player to move back and foward with a range of about 600 pixels ?

 
use it with wait command, moving 600 pixels is too much i set it to move 100
Look how scrollx second vcalue is 1600 and next scrollx after enemies is put on AT 1600, this is to enable you to move forward.
Code:
scrollx  1400  1600
at  1500


group    1 5
at      1500

spawn  marun
        map  1
	coords  650  334
        item marp
        itemmap 1
        itemhealth  50
	at  1500

spawn  zboj
	coords  -150  323
        health  100
        item co
         map 4 
	at  1500

spawn  zboj
	coords  550  353
        health  70
        item co
         map 1 
	at  1500


spawn  zboj
	coords  750  343
        health  100
        item co
         map 2 
	at  1500



scrollx  1550  2000
at  1600

spawn  wor
        map  4
	coords  500  320
	at  1650

spawn  wor
        map  1
	coords  540  350
       item jab
	at  1650

spawn  wor
        map  8
	coords  580  320
        item co
	at  1650

spawn  wor
        map  3
	coords  620  350
        item co
	at  1650

spawn  wor
        map  6
	coords  660  320
	at  1650

scrollx  1950  2100
at  2000


group    1 5
at      2000
 
Scrollx means the left border always.
So if you use scrollx 0 300,  your range is 0 ~ 620, assume you are under video mode 0.

 
iam using video 1 at the moment...

but there was a question i wanted to make when i started making the mod i just never asked...

is it possible to change the video between levels ?
like play the game in video 1 then change it to video 2 in other levels...

a level script that could work like

void video(int 1, int 2)
{
    int video = getlocalvar("video");
if(video == 1){changeentityproperty(video, 1);
}
else if(video == 2){changeentityproperty(video, 2);
}
}

i know that this script doesn work... but something that could look like this

 
Back
Top Bottom