P
_Proxy
Guest
This is the code:
I have 2 tables (obj_work_table) in my room (rm_house). What I am trying to do is create a notification (obj_notif_arrow) on top of both of the tables, but for some reason it is creating both of the notifications on one of the tables. Here is a link for you to see my create event and step event [ https://pastebin.com/2TynNWZb ]
Code:
repeat (instance_number(obj_work_table))
{
var xx = obj_work_table.x;
var yy = obj_work_table.y;
var notif = obj_notif_arrow_down;
var notif_x = xx;
var notif_y = yy - 450;
// Create the arrow notification above the workbench
notif_work_table = instance_create_depth(notif_x, notif_y, -1000, notif);
// Make it wave up and down
notif_work_table.wave_motion = true;
notif_work_table.wave_y1 = yy - 450;
notif_work_table.wave_y2 = yy - 400;
}