|
Post by tssr07 on Feb 8, 2005 15:39:31 GMT -5
I want a text box to follow my guys at Guy.x-2 and Guy.y+7 or something and just follow him. I need to show the variables 'exp' and 'attack' and 'defense' I think. I've been trying but I'm failing. Health too but I think that's easier, at least Health I mean, the others are just fine the way they are I don't really care.
|
|
|
Post by Xenith on Feb 8, 2005 22:01:34 GMT -5
this was mine, like 1 year ago, in gm5.3 so it probably won't work anymore, try this, put it in the draw event of your character draw_text(view_left[0] + x, view_top[0] + y, Health,)
sorry about the quietness of the forum, other members always complain about it being so quiet, but they never seem to do anything to liven it up in the first place
|
|
|
Post by tssr07 on Feb 9, 2005 14:45:42 GMT -5
Man I put
draw_text(Guy.x-2,Guy.y+7,health)
and now my object called Guy dissappeared and it's just a number of health of the badguy or something. I'll keep tryin.
|
|
|
Post by Xenith on Feb 9, 2005 15:28:03 GMT -5
you have to do it like this if you want it to follow the screen, draw_text(view_left[0] + x, view_top[0] + y, Health,) if your just trying to make a health bar or something above you head, try creating another object and put that draw_text(Guy.x-2,Guy.y+7,health in his draw event
|
|
|
Post by IsmAvatar on Feb 9, 2005 15:34:20 GMT -5
When an object has a draw event, it will not draw the sprite. To do this, you must have, in the draw event, draw_sprite(sprite_index,image_single,x,y)
|
|
|
Post by Another Gamer on Feb 10, 2005 6:43:16 GMT -5
this was mine, like 1 year ago, in gm5.3 so it probably won't work anymore, try this, put it in the draw event of your character draw_text(view_left[0] + x, view_top[0] + y, Health,) sorry about the quietness of the forum, other members always complain about it being so quiet, but they never seem to do anything to liven it up in the first place I'm not into this forum... so I stay far from it, except today =D
|
|
|
Post by phatsk8boarder on Feb 22, 2005 22:24:07 GMT -5
I have a method of drawing the exp,lvl,hp, and sp in a stats menu, but i'd rather not go into detail here. just check out my example in the wip forums.
|
|