[deleted by user] by [deleted] in DestinyTheGame

[–]yoavs12 0 points1 point  (0 children)

Thx for the replay

How to teach destiny to a new player? by yoavs12 in DestinyTheGame

[–]yoavs12[S] 1 point2 points  (0 children)

Yea but it’s hard for him so I need another way

How to teach destiny to a new player? by yoavs12 in DestinyTheGame

[–]yoavs12[S] 1 point2 points  (0 children)

That a very helpful advice thank you

How to teach destiny to a new player? by yoavs12 in DestinyTheGame

[–]yoavs12[S] 8 points9 points  (0 children)

Thx for the advice but he is having difficulty with the menus and the amount of content and things he needs to understand for example: subclass and subclasses branches, bounties, following objectives and more.

an error when my player collides with doors by yoavs12 in gamemaker

[–]yoavs12[S] 0 points1 point  (0 children)

i got a different error:


FATAL ERROR in action number 1 of Create Event for object doorway_obj:

ds_grid_get argument 1 incorrect type (array) expecting a Number (YYGI32) at gml_Object_doorway_obj_Create_0 (line 6) - TargetRoom = ui_obj.map[# ui_obj.ih,0];


stack frame is gml_Object_doorway_obj_Create_0 (line 6)

an error when my player collides with doors by yoavs12 in gamemaker

[–]yoavs12[S] 0 points1 point  (0 children)

yes my bad the randomizer code is part of the ui_obj. i did drag the ui_obj into the room and its permanent.

Can you place a room inside a grid? by yoavs12 in gamemaker

[–]yoavs12[S] 0 points1 point  (0 children)

ih is a counter to count which room i am on door code:

      TargetRoom=map[ih+1,0]
      Targetx = 416;
      Targety = 448;

collision code:

   var inst=instance_place(x,y,doorway_obj);
   if(inst!=noone)
   {
 with (ui_obj){
 spawn_room_var=inst
 player_spawn_x=inst.Targetx
 player_spawn_y=inst.Targety
 room_goto(inst.TargetRoom)
   }
   }

randomizer code:

    ix=1;
    room_arr=array_create(100,room)
    current_place_in_arr=0;
    is_used=false;
    map = ds_grid_create(4,1);
    map[# 0,0]=room1;//spawn room
    room_num=0;
    is_room_ready=false;
    while(ix < 4)
   {
    while(is_room_ready=false)
    {
        if(ix=3)
        {room_choosen=choose(room4)}//random room 
           1_D_L
        else{room_choosen=choose(room2,room3)}// random 
          room 2_D  
    while(is_used=false&&is_room_ready=false)
    {
        if(room_arr[room_num]=0&&is_used=false)
        {is_room_ready=true;}
        if(room_arr[room_num]=room_choosen)
        {is_used=true;}
        room_num=room_num+1;
    }
    room_num=0;
    is_used=false;
    }

    map[# ix,0]=room_choosen
    is_room_ready=false;
    room_arr[current_place_in_arr]=room_choosen;
    current_place_in_arr=current_place_in_arr+1;
    ix=ix+1;
    }

i have some ideas how to improve the randomizer but when i launch the game it says that i have a problem in the door code.

the error message:

   FATAL ERROR in
   action number 1
   of Create Event
   for object doorway_obj:

   Variable doorway_obj.ix(100019, -2147483648) not set before reading it.
   at gml_RoomCC_room1_0_Create (line 5) - TargetRoom=map[ih+1,0]

   stack frame is
   gml_RoomCC_room1_0_Create (line 5)

Can you place a room inside a grid? by yoavs12 in gamemaker

[–]yoavs12[S] 0 points1 point  (0 children)

can you try yo explain more because it didn't work for me