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 / Fade sprite in slowly

Author
Message
Jac
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location:
Posted: 28th Nov 2004 04:06
Hi,

As far as I can work out the code below should make the sprite fade in slowly when you move the mouse into the box.

Can't figure out what I'm doing wrong. I've tryed a couple of ways which were as unsuccessful



Naturaly I'm greatful in advance for any help

JC

These are not the droids you are looking for.
dj chainz
20
Years of Service
User Offline
Joined: 25th Sep 2004
Location: England
Posted: 28th Nov 2004 04:38
firstly the get image should have ,1 command at the end to set it to not capture a texture - get image 1,100,118,180,200,1

Then the entire system you had for fading in did not work because it was all in a for - next loop before the sync, and so i changed all this to a counter system, as it is more flexible. You can change the variables counter,countermax and alphachange accordingly.



I am the lead programmer at red spark studios
I also have a blog on how to make a game engine
http://www.dbgame.blogspot.com
Jac
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location:
Posted: 28th Nov 2004 06:32
Thanks, thats perfect.

I'm just sitting here getting my head round the counter system that you used. As I'm sure it'll come in useful.

Didn't know about the texture thing either. two new things learned today.

Great.

These are not the droids you are looking for.
Jac
21
Years of Service
User Offline
Joined: 9th Nov 2003
Location:
Posted: 28th Nov 2004 16:51
Just to show that I now understand the counter system and for ayone that interested I now have the sprite fading out as well as in which is exactly what I was after.

Here is the code



These are not the droids you are looking for.

Login to post a reply

Server time is: 2024-11-27 16:43:52
Your offset time is: 2024-11-27 16:43:52