[CODE] Teleporting (Jumping) In DOREMIX

01/17/2013 18:01 Joever11#1
Hi all,

Maybe as you guys know, I'm making an exactly (for the moment offline) game like darkorbit was before...

Now I wanna make the high maps to...
I changed the code so it should have to work, but when I jump to 4-4 (created map) It only plays the anymation and wont change the map...
Here is a piece of the teleporting code:

Code:
case lv4_1:  //PVP
    {teleport1=instance_create(1024,5000,teleport);
    teleport1.map1=lv1_4;
    teleport1.map2=lv4_1;
    teleport2=instance_create(14960,1024,teleport);
    teleport2.map1=lv4_2;
    teleport2.map2=lv4_1;
    teleport3=instance_create(14960,8960,teleport);
    teleport3.map1=lv4_3;
    teleport3.map2=lv4_1;
    teleport4=instance_create(8000,5000,teleport);
    teleport4.working=true;
    teleport4.map2=lv4_4; break;}     // ->HERE<-, I think this should need to work, anyway... Where can I find the right coordinates and how do I make it work?
case lv4_2:  
    {teleport1=instance_create(8000,1024,teleport);
    teleport1.map1=lv2_4;
    teleport1.map2=lv4_2;
    teleport2=instance_create(8000,5000,teleport);
    teleport2.working=false;
    teleport2.map2=lv4_4;
    teleport3=instance_create(1024,8960,teleport);
    teleport3.map1=lv4_2;
    teleport3.map2=lv4_1;
    teleport4=instance_create(14960,8960,teleport);
    teleport4.map1=lv4_3;
    teleport4.map2=lv4_2; break;}
case lv4_3:  
    {teleport1=instance_create(14960,5000,teleport);
    teleport1.map1=lv3_4;
    teleport1.map2=lv4_3;
    teleport2=instance_create(8000,5000,teleport);
    teleport2.working=false;
    teleport2.map2=lv4_4;
    teleport3=instance_create(512,512,teleport);
    teleport3.map1=lv4_3;
    teleport3.map2=lv4_2;
    teleport4=instance_create(512,9488,teleport);
    teleport4.map1=lv4_3;
    teleport4.map2=lv4_1; break;}

PS: if you have any old darkorbit files, you can send them :D
01/17/2013 18:12 »Barney«#2
good luck with it lol

but why
teleport2.working = false;


btw C#?
01/17/2013 18:18 Joever11#3
Quote:
Originally Posted by chichi011 View Post
good luck with it lol

but why
teleport2.working = false;


btw C#?
I only editted it to 'true' in 4-1... PS: Gamemaker...
01/17/2013 18:18 Requi#4
This is not C#. It's Gamemaker :D

You must create a instance with the coordinate. Don't ask me how, I don't know it :p
01/17/2013 18:31 Joever11#5
Quote:
Originally Posted by 'RD. View Post
This is not C#. It's Gamemaker :D

You must create a instance with the coordinate. Don't ask me how, I don't know it :p
Yeah, I get it... but hmm, how to find the coordinates? :s This will take a lot of time if I don't know how :D
01/17/2013 19:15 poczatki#6
Hehe i've fun with DO remix source too ;) I added pseudo "3d" effects of ships like in DO ;)
What coords u want to find ?
01/17/2013 19:20 Joever11#7
Quote:
Originally Posted by poczatki View Post
Hehe i've fun with DO remix source too ;) I added pseudo "3d" effects of ships like in DO ;)
What coords u want to find ?
I think I need the coordinates of the portal, to edit in the source so I can jump to newer map, no?
01/17/2013 19:27 poczatki#8
case lv4_1:
teleport4=instance_create(8000,5000,teleport);
teleport4.working=true;
teleport4.map2=lv4_4; break;}
case lv4_2:
teleport2=instance_create(8000,5000,teleport);
teleport2.working=false;
teleport2.map2=lv4_4;}
case lv4_3:
{teleport2=instance_create(8000,5000,teleport);
teleport2.working=false;
teleport2.map2=lv4_4;}


This are portals to 4-4. (in center of map 'coz maps are 16000x10000).

About graphics ---> There are a lot of public res downloaders so use search.
(Old DO, UW and DO resources)
01/17/2013 19:37 Joever11#9
Quote:
Originally Posted by poczatki View Post
case lv4_1:
teleport4=instance_create(8000,5000,teleport);
teleport4.working=true;
teleport4.map2=lv4_4; break;}
case lv4_2:
teleport2=instance_create(8000,5000,teleport);
teleport2.working=false;
teleport2.map2=lv4_4;}
case lv4_3:
{teleport2=instance_create(8000,5000,teleport);
teleport2.working=false;
teleport2.map2=lv4_4;}


This are portals to 4-4. (in center of map 'coz maps are 16000x10000).

About graphics ---> There are a lot of public res downloaders so use search.
(Old DO, UW and DO resources)
I think teleport2.working=true;
?
Anyway, I'll try...
01/17/2013 19:44 poczatki#10
Quote:
Originally Posted by Joever11 View Post
I think teleport2.working=true;
?
Anyway, I'll try...
If u want to add other maps you should add rooms like 1-2 oe 1-3 ect. (just duplicate them) and add portals (on 4-4, 1-5, 1-6 ect) on adequate coords like in pvp or other mas cases.

About portals to 4-4 ---> Of course, all of them should have true value ! :)

EDIT: Can you tell me, what object have code with portals coords 'coz i can't find it ? Thank ya :)
01/17/2013 19:48 Joever11#11
Quote:
Originally Posted by poczatki View Post
If u want to add other maps you should add rooms like 1-2 oe 1-3 ect. (just duplicate them) and add portals (on 4-4, 1-5, 1-6 ect) on adequate coords like in pvp or other mas cases.

About portals to 4-4 ---> Of course, all of them should have true value ! :)

EDIT: Can you tell me, what object have code with portals coords ? Thank ya :)
Found it!
If you want the good code, here it is ;) anyway, thanks for your help!

Code:
case lv4_1:  // case + map where you are
    {teleport1=instance_create(1024,5000,teleport); // portal create on coordinates
    teleport1.map1=lv1_4; // map1= the map where you go to when you jumped
    teleport1.map2=lv4_1; // map2= the map where you are at the moment you jump
#Closerequest
01/17/2013 19:57 poczatki#12
Quote:
Originally Posted by Joever11 View Post
Found it!
If you want the good code, here it is ;) anyway, thanks for your help!

Code:
case lv4_1:  // case + map where you are
    {teleport1=instance_create(1024,5000,teleport); // portal create on coordinates
    teleport1.map1=lv1_4; // map1= the map where you go to when you jumped
    teleport1.map2=lv4_1; // map2= the map where you are at the moment you jump
#Closerequest
No, no, no, if u can tell me what object have this code :)
01/17/2013 20:07 Joever11#13
Quote:
Originally Posted by poczatki View Post
No, no, no, if u can tell me what object have this code :)
Population_ctrl
01/17/2013 20:07 rider735#14
Quote:
Originally Posted by Joever11 View Post
Hi all,

Maybe as you guys know, I'm making an exactly (for the moment offline) game like darkorbit was before...

Now I wanna make the high maps to...
I changed the code so it should have to work, but when I jump to 4-4 (created map) It only plays the anymation and wont change the map...
Here is a piece of the teleporting code:

PS: if you have any old darkorbit files, you can send them :D
The reason it won't "change" map, is because IIRC there is no 4-4 background/minimap image in v2.3.2. If you added the room 4-4 it will actually change map, but since there is no 4-4 background it will keep the background of the map you came from.
01/17/2013 20:10 poczatki#15
Quote:
Originally Posted by Joever11 View Post
Population_ctrl
Thanks a lot :)

Quote:
Originally Posted by rider735 View Post
The reason it won't "change" map, is because IIRC there is no 4-4 background/minimap image in v2.3.2. If you added the room 4-4 it will actually change map, but since there is no 4-4 background it will keep the background of the map you came from.
We just need to add backgrounds of all maps and minimaps ;D