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.

Code Snippets / Generic Fading menu's using Sprites

Author
Message
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 08:02 Edited at: 20th Apr 2005 08:42
This is done as a mini project for Kimosabi mainly, but posting here as its a pretty usefull snippet...



Appologies if this has already been done - but I learned a lot from it

Comments welcome.

PS: I also (rarely for me) put comments in the code! I never do this hehe....

EDIT: Screeny now


My Website:

Attachments

Login to view attachments
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Apr 2005 08:44 Edited at: 20th Apr 2005 08:50
Looks very interesting - but I can't seem to get it to work .... when I press a key the screen just goes to the rotating background image with no menu. By the way, 'Addmenuitem' is reserved if you have, as I do, Bluegui.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 08:58
Hmm..


This works on mine.

Initially, it dumps the menu to the screen and you press a key to get to the decent looking menu.

I've changed the function name too - thanks Ric

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 20th Apr 2005 10:31 Edited at: 20th Apr 2005 10:32
Hmmm .... this is what I get before pressing a key:



... after which it disappears. I'll have a look through the code to see why it might not be working for me.

Attachments

Login to view attachments
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 20th Apr 2005 11:20
Same problem as Ric.

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 18:19
In the immortal word of a man with no idea why thats happening - WHAT THE SMEG?!

How can the same code produce different answers on different machines like that!?

I'm using V5.8 if that makes ANY difference whatsoever..

My Website:
BatVink
Moderator
22
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 20th Apr 2005 19:07
Ric, Phaelax, have you tried compiling via the DBpro editor to see if this fixes it?

Sounds weird, but I fixed a problem this way once. It would be useful to know if this still happens.

BatVink
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 20th Apr 2005 20:49
Do they use the blue editor? I use the most recent release of the DBP Editor, I never really liked any of the others.. Always thought they felt a little clunky, but thats one mans opinion.

My Website:
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 21st Apr 2005 01:43
I only use the original DBPro editor. I'm still on patch 5.5

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Apr 2005 02:04
This is really wierd - why would it do this?!

Can anyone else try it (eg BatVink)?

My Website:
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 21st Apr 2005 02:11
I'm using the normal DBP editor, v 5.7, and have the BlueGUI plugin as I mentioned. Didn't that antfarm code you did use a similar menu? Coz that worked fine for me.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 21st Apr 2005 04:50
Its based on the same code.. In fact, it basically is!

This is REALLY wierd - have you tried making a project file and folder for it?

If this continues, I might have to post this in the DBP forum and ask people to check it out for me so I can get an idea about how inconsistence DBP is..

My Website:
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 22nd Apr 2005 18:42
Can anyone else try this?

It works on mine, but there are a few people here who have tried it and it goes wierd, I made a slightly tweaked version for KimoSabi (99.99% the same, just different menu's) and it just crashed with a log (yet to find the contents)..

I'm interested to know why this isn't working on everyone's PC..

My Website:
spooky
22
Years of Service
User Offline
Joined: 30th Aug 2002
Location: United Kingdom
Posted: 23rd Apr 2005 07:38
Works perfectly for me using 5.8 and standard IDE.

Boo!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 23rd Apr 2005 09:24
Thanks Spooky - much appreciated.

Well thats good to know - i was starting to think my PC had features that others didn't.. Lol..

Anyone else care to try?

My Website:
Phaelax
DBPro Master
22
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 24th Apr 2005 06:04
It works for me now, I've upgraded to 5.8. So apparently you're doing something that only works with 5.8. If Ric upgades, we'll know for sure.

PETA - People for the Eating of Tasty Animals
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 24th Apr 2005 09:15
lmao - how? I'm not doing anything particularly difficult! It just some simple images in simple sprites using alpha!

God I love DBP..

My Website:

Login to post a reply

Server time is: 2025-05-18 11:34:24
Your offset time is: 2025-05-18 11:34:24