From f62f270de05ebe5a71ef2e66a1a0f54b4ed9dc61 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Fri, 30 Dec 2016 09:38:02 +0100 Subject: Working sprites and instance_create --- src/objects/obj_control.cpp | 1 + src/objects/obj_hoi.cpp | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/objects') diff --git a/src/objects/obj_control.cpp b/src/objects/obj_control.cpp index 19b8b40..8f1a84b 100644 --- a/src/objects/obj_control.cpp +++ b/src/objects/obj_control.cpp @@ -9,6 +9,7 @@ EVENT(create){ x=10; y=240; log("Control object wow!"); + instance_create(20,20); } EVENT(step){ diff --git a/src/objects/obj_hoi.cpp b/src/objects/obj_hoi.cpp index fe3c3f1..314b734 100644 --- a/src/objects/obj_hoi.cpp +++ b/src/objects/obj_hoi.cpp @@ -1,11 +1,12 @@ EVENT(create){ x=y=10; + sprite_index=spr_hoi; } EVENT(step){ x++; } -EVENT(draw){ +/*EVENT(draw){ draw_text(x,y,"yay!"); -} +}*/ -- cgit v1.2.3-70-g09d2