Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

How to make …. ?


clark
 Share

Recommended Posts

Hey guys ,

**Engine using :** Eclipse Advanced (latest)

**Dx :** 8

I would like to know how to make theses things (If you know the exact code tell me please):

- Make an intro (show 2 pictures of the size of the game screen) before showing the main menu

- Show Picture when changing maps ? (a sort of World of warcraft when you take a teleporter it show you a picture the time that the maps load ^^

**Thanks in Advance**
Link to comment
Share on other sites

For the intro:

Make a shader who's opacity is based off a shader opacity value and a logo and render them if the shader's opacity is bigger than 0\. Make a timer in the gameloop that says if they're at the menu screen and take away from the shader opacity value, make it tick about every 500ms.
Link to comment
Share on other sites

> I am not too sure but
>
> if tmrintro > gettickcount then
>
> do whatever with opacity you want. Frankly i don't know wat
>
> end if
>
> tmr500 + 500

Almost.

```
If tmrShader < GetTickCount then

ShaderAlpha = ShaderAlpha - 1

tmrShader = GetTickCount + 500

End if
```
Link to comment
Share on other sites

And where i should place this code exactly ? "where in the gameloop"

and shouldn't i add :

If tmrShader < GetTickCount then

ShaderAlpha = ShaderAlpha - 1

tmrShader = GetTickCount + 500

Then

(directory/picture.jpg) or something ?

End if
Link to comment
Share on other sites

> And where i should place this code exactly ? "where in the gameloop"
>
> and shouldn't i add :
>
> If tmrShader < GetTickCount then
>
> ShaderAlpha = ShaderAlpha - 1
>
> tmrShader = GetTickCount + 500
>
> Then
>
> (directory/picture.jpg) or something ?
>
> End if

That was just a base so yes.

In gameloop sub add it anywhere.
Link to comment
Share on other sites

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
 Share

×
×
  • Create New...