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.

DarkBASIC Discussion / Object help

Author
Message
slurch901
21
Years of Service
User Offline
Joined: 20th Jan 2004
Location: ESPAÑA
Posted: 29th Jan 2004 18:10
i have a 2 probs with an obects the first is that i got a sledge hammer as a weapon but it starts at a different position and does move it just stays there, i would like it to attach to the character
(wich at the mo is a cone )

the second prob is that i need a health bar to stay on the screen, could sum 1 plz help me make one
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 30th Jan 2004 05:20
We need code to help you with the object problem, and for the "health bar to stay on the screen", just make sure you draw it every loop.

Jess.


Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy
Axelman
21
Years of Service
User Offline
Joined: 18th Oct 2003
Location: Parallel Universe
Posted: 31st Jan 2004 07:48
if you want the weapon to stick to the player, then do this

load object "cone",1
load object "sledgehammer.x",2
glue object 2,1

if you want the sledge hammer to swing around then you should glue the sledgehammer to the players arm while the player object swings his arm in an animation, and then you should be able to make the hammer swing around.

for the health bar you should goto the code snippets section, they have some pretty good health bar functions there.

hope i helped...

hey wait, thats what jess sez.

no problemo amigo

nothing right in my left brain:nothing left in my right brain

Login to post a reply

Server time is: 2025-05-22 16:26:22
Your offset time is: 2025-05-22 16:26:22