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.

Newcomers DBPro Corner / Menu for Character Generation using sprites (DBP)

Author
Message
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 9th Oct 2006 04:39
This is sprite menu for character generation for a 3d RPG I am working on. The graphics were made with photoshop. It's not yet complete, but nearly there.

Is there a more efficient method for doing what I have done here?

Here is the code:


And here is a link to a very low rez image screen shot:
http://unitedchaos.i8.com

I am alos including the media, which you can put in the folder with the code; in case anyone wants to run it and see how it really looks

Any feedback is appreciated.

J

Attachments

Login to view attachments
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 9th Oct 2006 13:55
This is a sprite menu for character generation for a 3d RPG I am working on. The graphics were made with photoshop. It\'s not yet complete, but nearly there.

Is there a more efficient method for doing what I have done here?

Here is the code:


And here is a link to a very low rez image screen shot:
http://unitedchaos.i8.com/index.html



I am also including the media, which you can put in the folder with the code; in case anyone wants to run it and see how it really looks

Any feedback is appreciated.

J
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 10th Oct 2006 02:03
Sorry for the duplicate submission. I had trouble editing, for some reason...
First Person Shooters
18
Years of Service
User Offline
Joined: 23rd Apr 2006
Location: UK
Posted: 11th Oct 2006 12:28 Edited at: 11th Oct 2006 12:29
dude the screenshot looks good, ill have to grab myself a copy once you are finished

erm if you are wondering about code, you might be best posting it in the code snipets part of the forum rather than here. Somebody should be able to help you there, keep up the good work now

(1)create something new, (2)update that something new to make it more enjoyable and look nicer, (3)when bored of that idea repeat (1)
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 11th Oct 2006 20:21
you could place an very tiny sprite that follows the mouse cursor only 1 pixel in size.
and simply check wich button sprite it collides with.
as the would you be able to use the for to next command.
as for the alpha of the buttons.

for t=22 to 60
current_button=sprite collision (cursor sprite,0)
if sprite collision (cursor sprite,current_button)
set sprite alpha current_button,200
else
set sprite alpha t,100
endif
next t

this is yust an quick sample as it can be done alot better but yust to show abit how to shrink your code.
cheers
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 11th Oct 2006 22:19
First Person Shooters:
Thank you for your encouragement. I am continuing to improve the program

Cliff:
Thank you for the suggestion. I am going to try and use that method to make the code more efficient.

I will update the code and screen shot soon

Happy Programming!!!

J
Cliff Mellangard 3DEGS
Developer
18
Years of Service
User Offline
Joined: 20th Feb 2006
Location: Sweden
Posted: 12th Oct 2006 20:41
if no reaction try to implent this line
if t<>current_button then set sprite alpha t,100
instead of
set sprite alpha t,100

cheers
Dracula
18
Years of Service
User Offline
Joined: 7th Aug 2006
Location: DBP Recreation of Castle Csejthe
Posted: 13th Oct 2006 04:28
Here is an updated screen shot. The + and minus buttons were a real bear

Thanks for the help!!!

http://unitedchaos.i8.com/

Login to post a reply

Server time is: 2024-09-25 09:30:28
Your offset time is: 2024-09-25 09:30:28