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 / Transparent levels?

Author
Message
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 11th Jun 2009 22:07
Hello there!

First look at this short video:

http://www.youtube.com/watch?v=wK4FzDnZ65g&feature=channel_page

As you can see, I levitate to the edge of the level, and there you can see that the closer I get to the edge of the level, the more transparent the layer is.

Basically, I want to do this in DBC. So you would have to make one side of the object not transparent, and the other side totally transparent. The problem is, if I ghost an object on, and texture it with a texture gradient fading into white (or black), one side will be fully transparent, but the other side will still be see-through. How can I do this?

Thanks, TheComet


Make the path of your enemies easier with Waypoint Pro!
Latch
18
Years of Service
User Offline
Joined: 23rd Jul 2006
Location:
Posted: 11th Jun 2009 23:47
I haven't looked at the video but you want one side solid and the other side semi transparent graduating to transparent?

Use two objects shaped the same. Object 1 is ghosted with your transformation. Object 2 is only half of object 1, the side that isn't transparent and is not ghosted. Overlay them.



Or build the level in sections, and only texture the sections you want turning invisible with appropriate textures and ghost them. Leave the rest un-ghosted.

Enjoy your day.
That1Smart Guy
16
Years of Service
User Offline
Joined: 26th Feb 2009
Location: Somewhere...... yep
Posted: 12th Jun 2009 00:17


both sides are transparent to varying degrees, the left is fully transparent, the right semi-transparent

adjust the backdrop color and change the 150's in the texture maker to adjust transparency

i'll make a function to create this gradient effect on any image

There are only 10 kinds of people in the world, those who understand binary and those who dont
pictionaryjr
16
Years of Service
User Offline
Joined: 12th Mar 2009
Location:
Posted: 12th Jun 2009 00:53
Not really sure if this would work, but couldn't you edit the colors in the bitmap with a memblock or something like in this thread what they did with the ninja: http://forum.thegamecreators.com/?m=forum_view&t=140993&b=10
But make the side your coming from be the lighter side and the side your going to be the darker side
Then just ghost the object.

Login to post a reply

Server time is: 2025-05-16 20:27:29
Your offset time is: 2025-05-16 20:27:29