More Help With HUD

Posted by KegMan1991 on May 5, 2007, 9:13 p.m.

I made a way to get the HUD up there but it's a little slooooowwwwweeeerr then the view. Is there a line of code to make the object move with the view? Like:

x = view_port+500

y = view_port+350

I am starting to get upset over this and it's really slowing down me getting anything done not to mention that I need to work on the game more then just getting a freak'n HUD in there.

I was trying to make it move with an object that follows the player and the player is always in the center of the screen. It doesn't work that well. Plus I don't want to have the player in the center of the screen the whole time on account that I am making it a RPG/RTS and I want to be able to have the screen follow but not be RIGHT over the little mouse cursor in the RTS mode.

I think I might try that little

x = view_port+500

y = view_port+350

Looks okay, I think I will. I bet it won't work but whatever.

-=-=-=- In other news -=-=-=-

I was working on a way to get a sprite to change based on the location of the mouse or another variable. It works (unregistered-I know I know, I want to register but I don't have a credit card.) but I can only make it work to a degree. I need to pay more attention in Algabra so that I can understand how to put that

| /

| /

|/

—————–

|

|

|

kind of graph into

if mouse_y > y {

sprite_index = down

object_get_sprite(object0)

}

kinda thing. I guess that I could find a way to say

like a y = x2

I think that would be more of a

|

| | |

| /

——–..——–

|

|

|

But it might work….

kinda like

if mouse_y > y*y {

sprite_index = down

object_get_sprite(object0)

I geuss its worth a try.

I'll try it now……..

hmmm doesn't work…

HOLY *&$# YES!!! I GOT THE HUD CODE RIGHT!

To move with view

Step event

use code

y = view_yview

x = view_xview

HA! I didn't think that would work… it's still kinda slow though….

Well… If you speed up the room and slow down the objects movements… It works alot smoother, I guess this isn't to bad…. Hmm, I guess I'll through this into Varagona instead of what I was using, this way I can make alot more player upgrades and what not.

Now I just got to find out about that angle with registration! *laugh out loud*

Haha

Peace ,/,,

Kegman.

A.K.A. Keithster

NOTE:

My NICKNAME is Keithster not my real name. Thats Keith.

NOTE:

Why are you reading these "NOTE:'S"?

HAHAHA

It's not that funny…

(0)(0)

(XXXXX)

|||||||

———

|||||||

(XXXXX)

(0)(0)

I don't know what that is but yeah, I was going to do the nude girl thing but, I don't want to get band or nothing.

XD

PEACE ,/,,

KegMan

Comments

poultry 18 years, 9 months ago

in the draw event, just draw using the coordinates view_xview,view_yview

v_v

Snakeman 18 years, 9 months ago

YAAAAAAY FOR DUMBASS-NESS!

Rob 18 years, 9 months ago

javascript: add_friend('Rob')

Tasm 18 years, 9 months ago

javascript: kill_family('Rob')

beam 18 years, 9 months ago

look up view_xview and view_yview. ignore the idiots above

KegMan1991 18 years, 9 months ago

the "" in the code all got removed. lol

i was trying to do ",/,,"

like the peace sing but it got removed lol.

and thoughs other ones were are algabraic graphs.

again it got rid of ""

KegMan1991 18 years, 9 months ago

wow WTF!! it did it again

this ""

hopfully it works that time.