Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Mugen Wizardry
User Banned
Posted: 2nd Aug 2010 20:40
still a bit blurry.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 2nd Aug 2010 21:23
is there anyway to sharpen it?

i added ,1

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Aug 2010 21:58
Theres a couple of things you can try...

SET OBJECT TEXTURE obj,0,0

That will disable mipmapping.

And more severe...

SET OBJECT FILTER obj,0

Health, Ammo, and bacon and eggs!
Mugen Wizardry
User Banned
Posted: 2nd Aug 2010 22:15
SET OBJECT FILTER did it!

How can I add a Depth of Field effect so it blurs it a LITTLE bit, and makes it sharp? its a little too sharp now.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 2nd Aug 2010 23:12
I think it would be best to use a higher resolution image now, maybe 320x32, so you can have bigger text, and it won't go crazy when you scale it - also I would use 'Arial Bold', it's quite a readable font.

There's no escaping the problems with filtering when using 3D. That's why I suggest sprites, as that way you have full control, however it does mean every health bar is the same size.

Health, Ammo, and bacon and eggs!
Mugen Wizardry
User Banned
Posted: 2nd Aug 2010 23:18
320x32 screws up



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 2nd Aug 2010 23:58 Edited at: 3rd Aug 2010 00:01
ok. i fixed it.

now i need it only to fade in the healthbars and update the healthbars when the camera gets within the given range of getdist(), and fade back out when the camera gets far away from the enemy.



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 12:40
is this possible?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 3rd Aug 2010 12:42
Yeah, a simple distance check would sort that for you - will have a look tonight if nobody beats me to it.

Health, Ammo, and bacon and eggs!
RedFlames
18
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 3rd Aug 2010 14:01


okay i made some changes to your code and put a " //CHANGED" after the lines. Distance check works and player healthbar is always visible. (was covered by the enemy cube before, because you moved the Healthbar 5 Units away from the camera.)
The Healthbar of the Player is now locked to the screen.
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 14:11
thanks!

how do i fade it in when close, and out when far?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 14:17 Edited at: 3rd Aug 2010 14:17
fix for function.

now it can be used with any #s



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 14:26
*smacks forehead* theres a math error in the function. When u set maxhealth to 1 million, it goes to 1,000,100 instead of 1,000,000 ><

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
RedFlames
18
Years of Service
User Offline
Joined: 25th Aug 2007
Location: Germania
Posted: 3rd Aug 2010 16:10
Edit your post goddamnit

Here i changed the healthbar function to accept a max# argument:


You'll have to do fading yourself. And not let others code it for you
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 16:13 Edited at: 3rd Aug 2010 16:14
it's still saying 1000100
after changing it to inc p.health, 10000

i need to be able to add as many health points as possible to the players current health and still have it go up to 1000000 not 1000100

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 16:18 Edited at: 3rd Aug 2010 16:19
not look at this health bit , but if you are only getting an increase of 100 each time then you may need to multiply it, or are you saying that when you add 1000000 you get 1000100.

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 16:25
like this?

center text width/2,0,str$(int(P#*max#*p.health#))+"/"+str$(int(max#))

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 17:04 Edited at: 3rd Aug 2010 17:12
Ah! the old bracket problem.

try one of the following

center text width/2,0,str$(int((P#*max#)*p.health#))+"/"+str$(int(max#))
center text width/2,0,str$(int(P#*(max#*p.health#)))+"/"+str$(int(max#))

edit
the above may do nothing at all, just sometimes it does.

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 17:23
now its returning a huge number.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 18:59 Edited at: 3rd Aug 2010 19:34
2 questions.

1. how can i fix the 1000100 problem so i can use ANY number for p.health# and p.maxhealth#?

2. how can I make it so if it is equal to or > than 1 million, it says 1.25M/1.25M, 2.25M/2.25M, etc, yet still count up or down
like in WoW?



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 20:48
HowDo, ur formula did not work

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 21:16
i changed it so that the player is the cube.

problem is, the health bar is still attached to the camera and when increasing the number, it doesnt work, or goes to 1000100



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 21:48
Which keys make the health go up and down?

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 21:59
z and x

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 22:37
where is maxinc and maxdec set in your code as it will not do anything for me, even in direct mode.

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 22:41
that should be set for p.maxhealth#

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 22:47
nop, cannot see anywhere were maxinc# and maxdec# is set with a number, so they start with zero.

Dark Physics makes any hot drink go cold.
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 23:20
Ah! see problem now there a 100 set in code some where because if you use maxinc# and maxdec# set to 100.0 the bar start as 100/1000000 and then go up to 1000000 but when there set to 100000 it adds the 100 to the 100000 giving to 1000100.

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 3rd Aug 2010 23:39
so how do i fix that?

i need to be able to use ANY number

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 3rd Aug 2010 23:48
p.health# needs to start with zero then it should work.

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 00:17
but then my player will be dead.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 13:33
won't it?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 19:07
HowDo, can you make it so that I can use ANY number for the inc and dec, and it goes ONLY to maxhealth?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Aug 2010 19:16
put this in by the global statment

maxinc#=100
maxdec#=100

then when you press z or x in go up or down that amount.

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 19:34 Edited at: 4th Aug 2010 19:34
yes but what i'm saying is.

i need to be able to use something other than 100
thanks, howdo!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Aug 2010 19:45
well this will give you a number between -1000 to 1000 each time you run it

maxdec#= -1000+rnd(2000)
maxinc#= -1000+rnd(2000)

or this , replace this when the other code is for if keystate 44 or 45.

inc maxinc#, -1000+rnd(2000)

dec maxdec#, -1000+rnd(2000)

Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 19:51
no. what i mean is. i need to be able to add ANY number to inc and dec. and have it less than or = to the max health EVERY time.

so it will NEVER go beyond this

for instance:

inc p.health#,10000

dec p.health#,10000

current health:

999999/1000000

if you press z and increase it,

it will say:

1000000/1000000

thanks, howdo!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Aug 2010 19:58
try this should work.



Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 20:05
nope. its still doing 1000100



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
HowDo
23
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 4th Aug 2010 20:20


Dark Physics makes any hot drink go cold.
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 20:24
that works!

thanks!

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 20:58 Edited at: 4th Aug 2010 21:13
ok. now. how do i make more than 1 bar?



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 4th Aug 2010 21:24
a little better. but still wrong



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 01:25
ok, how do i set transparency to the texture of my healthbar?



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 03:09
ok. for some reason the gold circles on this healthbar are flickering as if overlapping. how do i make it so the plain for the circle is invisible and make the texture so its LESS see through than it already is? by less i mean the gold circle shouldnt be as transparent. so that way it looks like the glass is connected to the circles.

thanks!



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 13:57
is it possible to fix?

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 14:55
how can i make it so if the player distance >= 10, then hide the healthbars, else show the healthbars.

how can i ALSO make it so if the camera distance between the camera and the enemy <= 1.6 (gets close) then hide the healthbars, else show the healthbars?

i tried, and its not working

if GetDist(0,0,p.id,e.id)>10
CreateBar(p.id+2,p.id,0,0,100,10,p.health#,0xCCFFFFFF,0x33FFFFFF, p.maxhealth#)
position object p.id+2,object position x(p.id),object position y(p.id) + (object size y(p.id)+1)/2.0,object position z(p.id)
hide Object p.id+2
hide Object obj
hide Object obj2
hide Object obj3
else
Show Object p.id+2
Show Object obj
Show Object obj2
Show Object obj3
endif
if GetDist(1,0,obj,0)>1.6
Show Object obj
Show Object obj2
Show Object obj3
else
hide Object obj
hide Object obj2
hide Object obj3
endif

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 15:25
nvm.

this works

if GetDist(0,0,p.id,e.id)<10 and GetDist(1,0,obj,0)>1.6
Show Object p.id+2
Show Object obj
Show Object obj2
Show Object obj3
else
hide Object p.id+2
hide Object obj
hide Object obj2
hide Object obj3
endif

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 15:50 Edited at: 5th Aug 2010 17:58
ok, i still can't get the players bar to follow the player..



CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/
Mugen Wizardry
User Banned
Posted: 5th Aug 2010 17:57
here's a pic.

CHECK OUT SOME MUSIC FROM MY NEW TECHNO CD! TECHNOKINESIS
http://www.youtube.com/watch?v=4a8KedfgVv0
ALSO, CHECK OUT MY NEW TECHNO CD! http://www.imageposeidon.com/

Login to post a reply

Server time is: 2026-07-25 08:32:04
Your offset time is: 2026-07-25 08:32:04