(SOLVED)How to make your logo come on screen and fade away?

Hi guys! so u know how in some games there name or whatever comes up and then fades away? i really have zero idea how to do this but would like to know so when ppl play my game they assume im a pro which only makes it better. :sunglasses:

pls help. :pray: :face_holding_back_tears:

Multiple ways to do so

  • You can use tween behaviour to make it so an objects opacity gets to 0 and then gets deleted
    image
  • Or you can just make it so your logo has an animation with opacity getting higher/lower

    gif-ezgif.com-video-to-gif-converter

I’m personally using the second method

1 Like

I think the tween would be easier, could you tell me how?

I did (well tried) it but it kinda dont work, so it does change the opacity but
 by one! so the code it :“Conditions” : if left mouse button is down,Trigger once,
“Actions”: Text change opacity + 1

but i know thats gonna happen but i need it to happen continuously.

Hi!

First create a text object, where you write the text. Then add the Tween beaviour to it, and add the object into your scene.

In this code example the text is hidden (opacity is set to 0) in the beginning of the scene. When the mouse button is pressed, the text fades in and then fades out.

Tween is a super useful feature for many things, and I recommend you to check couple of tutorials about it. Just go to Youtube and search “GDevelop Tween”. Attention! If the video you are watching is a bit older, it’s probable that the tweening time is set in milliseconds. In current version of GDevelop the time is set in seconds.

Hope this helps. :slight_smile:

1 Like


and in fact nowadays you don’t have to set the initial opacity of the object with the code, it can be set also in the object properties, when you select the object.

1 Like

Thanks so much it comes out great! :face_holding_back_tears: :grin: :star_struck: :star_struck: :100:

but could you also tell me how to make it go away? like fade slowly?

Umm i guess its fine now cause i made it after then the scene will change to start so for now it should be fine
 :point_down:

That’s a rather messy way to write events and it’s rather hard to tell what’s going to be triggered and when. Additionally you are using too many unnecessary “Trigger once while true” conditions.

Consider something like this instead:

2 Likes

yea, makes more sense il try and let u know if it works ty! :laughing:

1 Like

You doubt my solution? :open_mouth:

1 Like

never, i know i can always trust you hahaha. :upside_down_face: :sweat_smile:

It works fine! just one more thing, first of all how do i make it slower? And do u have a good sound effect for the logo coming up?

Increase the time of the tween. And if you look at easings.net, you’ll get the speed variations at which the tween can behave.

As for the sfx,I’d suggest you search the web or get an AI music generator to come up with something.

1 Like

u have any idea on what words i use specificly to search on the web?

(btw i dont really use AI unless i have to)

I’d start with "Free sfx " plus how you envisage the sounds to be. A rising whoosh, a metallic clunk, an ominous rumble etc

There are a gazillion sounds out there, so be prepared to find a sfx library and listen to a lot of samples.

1 Like

not sure now that you mention it
 il have a look at other games and see what i can find tysm MrMen! :face_holding_back_tears: :star_struck: :100: