Jump to content

Scriptinghelp with interpolateBetween


Recommended Posts

hey guys, i have a problem.

  
                        if ( cX > 35/screenW ) then -- shooter 
                            if ( cX < 360/screenW ) then 
                                if ( cY > 530/screenH ) then 
                                    if ( cY < 705 /screenH ) then 
                                        local hoveralpha =                 interpolateBetween(0,0,0,100,255,255,getProgress(1000),'InQuad') 
                                        dxDrawImage( 35, 530, 325, 175, 'img/shooterh.png',0,0,0,tocolor(255,255,255,hoveralpha)) 
                                    end 
                                end 
                            end 
                        end  
  

The problem is, that it doenst show the picture in one second, it shows immediately

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...