• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

Legacy GM Unknown variable x help please, thank you

Explorer
Code:
Information about object: explorer

Sprite: expl_up
Solid: false
Visible: true
Depth: -1
Persistent: false
Parent: <no parent>
Mask: <same as sprite>

Create Event:
set variable Carla to 0
set variable Carla2 to 0
set variable invincible to false
set variable x to x
set variable y to y
set the sprite to expl_up with subimage 0 and speed 0

 Step Event:
if number of objects point is Equal to 0
      play sound won; looping: false
      sleep 2000 milliseconds; redrawing the screen: true
      if next room exists
            go to next room with transition effect <no effect>
      else
            show the highscore table
    background: <undefined>
     show the border
     new color: 255, other color: 8388608
     Font: "Times New Roman",12,0,1,0,0,0
            restart the game

Collision Event with object monster:
if invincible is equal to false
      play sound dead; looping: false
      sleep 1500 milliseconds; redrawing the screen: true
      for all monster: jump to the start position
      for all scared: jump to the start position
      start moving in directions 000010000 with speed set to 0
      set variable image_speed to 0
      jump to the start position
      set the number of lives relative to -1

Collision Event with object scared:
play sound catch; looping: false
for other object: jump to the start position
for other object: change the instance into object monster, not performing events
set the score relative to 100

Collision Event with object wall:
start moving in directions 000010000 with speed set to 0
set variable image_speed to 0

Collision Event with object point:
for other object: destroy the instance
play sound beeb; looping: false
set the score relative to 10

Collision Event with object pil:
play sound bonus; looping: false
for other object: destroy the instance
for all scared: change the instance into object monster, not performing events
for all monster: change the instance into object scared, not performing events
for all scared: set Alarm 0 to 160

Keyboard Event for <Left> Key:
if relative position (-4,0) is collision free for Only solid objects
      start moving in directions 000100000 with speed set to 4
      set the sprite to expl_left with subimage -1 and speed 0.5

Keyboard Event for <Up> Key:
if relative position (0,-4) is collision free for Only solid objects
      start moving in directions 000000010 with speed set to 4
      set the sprite to expl_up with subimage -1 and speed 0.5

Keyboard Event for <Right> Key:
if relative position (4,0) is collision free for Only solid objects
      start moving in directions 000001000 with speed set to 4
      set the sprite to expl_right with subimage -1 and speed 0.5

Keyboard Event for <Down> Key:
if relative position (0,4) is collision free for Only solid objects
      start moving in directions 010000000 with speed set to 4
      set the sprite to expl_down with subimage -1 and speed 0.5

Other Event: Outside Room:
wrap in both directions when an instance moves outside the room

Other Event: Game Start:
set the number of lives to 3
set the score to 0
set the information in the window caption:
 show score with caption Score: 
 show lives with caption Lives: 
 don't show health with caption health: 
play sound music; looping: true

Other Event: No More Lives:
show the highscore table
    background: background
     show the border
     new color: 255, other color: 8388608
     Font: Arial,12,0,1,0,0,0
restart the game

Key Press Event for I-key Key:
set variable invincible to true

Key Press Event for Q-key Key:
set the number of lives relative to 10
execute code:

with(all)
{
  image_blend = random(round(999999));
}

Key Press Event for R-key Key:
execute code:

with(all)
{
  image_angle += 1;
}

Key Press Event for T-key Key:
set variable invincible to false

Key Press Event for W-key Key:
execute code:

if (instance_number(point) > 1)
{
  Carla = random(point.id+1);
  x = (Carla).x;
  y = (Carla).y;
}


I want variable Carla to equal to a random point.id
and then for Explorer to go to the x and y position of whatever variable Carla is equal to.



Here is the error
Code:
___________________________________________
ERROR in
action number 1
of Key Press Event for W-key Key
for object explorer:

Error in code at line 4:
     x = (Carla).x;

at position 16: Unknown variable x


I Jason am using Game Maker 7.0 Pro Edition which I had for a super long time.
 
You'll want to replace that Carla line with:

Carla = instance_find(point.object_index, irandom(instance_number(point.object_index)));
 
Top