Guide by Pvic:
How to make a warp ring: Make the sprite spr_big_ring: https://cdn.discordapp.com/attachments/392733687596187649/401543697558142976/spr_big_ring_strip4.png and the sprite spr_big_ring_die: https://cdn.discordapp.com/attachments/392733687596187649/401543729191845898/spr_big_ring_die_strip8.png Center the offset in both sprite If you are using gm8, make a script and call it draw_self and paste this code in
//draw_spritedraw_sprite_ext(sprite_index, image_index, floor(x), floor(y), image_xscale, image_yscale, image_angle, image_blend, image_alpha);` Make an object called obj_big_ring Paste this in create:
image_speed=0.125;activated=false;Step
if activated==true{global.main_player.visible=false;global.main_player.x=x;global.main_player.y=y;}Collision with par_player
if other.ai_flag == false && activated =false{instance_create(view_xview[0]+0,view_yview[0]+0,obj_fade_in_white)sprite_index=spr_big_ring_die;image_speed=0.25;image_index=0;activated=true;}Animation End
if sprite_index==spr_big_ring_die{global.restart_x = -1; global.restart_y = -1; room_goto(rm)}Draw:
draw_set_color(c_white);draw_set_font(global.fnt_abc_main);draw_set_halign(fa_center)draw_self()draw_text(x,y,txt)Make sure to put in the object's creation code the rm value and the txt value.
Ex:
rm=rm_zone_test; txt="Test Zone"Update:
Fixing a thing:
You also have to make a object called obj_fade_in_white:
duplicate obj_fade_in
call it obj_fade_in_white
go to the code in it's draw event and change c_black to c_white
.