|
Post by newbie on Mar 9, 2004 13:42:47 GMT -5
I already have my dialog text script. The problem is, I cant make the dialog text to follow object. I did have my scoreboard (lifes, score, health) to follow using x=view_left+35, y=view_top+35 but this doesnt seem to work for scripts. Does anybody have any idea to make this script work such that when im in contact with an NPC, a dialog text appear but at the bottom of the screen (in view mode) same as it does for my scoreboard? He's my script: { screen_redraw(); font_size = 7; font_style = fs_normal; draw_sprite(spr_wasp,0,view_left+5,view_top+200); screen_refresh(); draw_text(view_left+20,view_top+200,'You will not pass me.'); screen_refresh(); keyboard_wait(); } Can any1 help me? Please make sure you only hit the submit button once.--Noadi
|
|
|
Post by IsmAvatar on Mar 9, 2004 15:41:45 GMT -5
(Didn't you ask this on the GM boards? And didn't I answer? lol)
view_left and view_top are arrays.
suppose you're using the first view, called view0
then you'd use this:
x = view_left[0] + 23
|
|