Beginner - I need randomizing a background image

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • I have a rookie-made audiobook app, which I recently made. Here is the Playstore link:

    Please login to see this link.

    Please login to see this attachment.

    I need help, I'm in over my head. How do I make an background image that randomizes every time someone loads the Home page?

    I hope to learn how to randomise animations/images or frames, or anything. Because I think thats a refreshing way to improve my projects. But I have no idea how to randomize the background image. I have already loaded the other options as "Animations"

    Is there anyone who can help me?

    PS: I have included the project files below. I had to delete the page with the audio file, because it was making the app too big to send here. (I hope nothing is broken in the project files).


    Thank you, in advance

    Tafadzwa

    Zimbabwean-budding-dev

  • Hello Totally2d,

    one approach could be to use an active object to display the background image. Every active object has animations, so you can set a different background image for each frame of an animation, and at the beginnig of the app ( event: start frame ) set a random frame number for that animation.

    You could even use the active object directions, and assign a different image for each of the 32 directions, and set a random direction for that active object when the app starts.

    I hope this makes sense to you.

    Regards,
    Sergio

  • Hello Totally2d,

    one approach could be to use an active object to display the background image. Every active object has animations, so you can set a different background image for each frame of an animation, and at the beginnig of the app ( event: start frame ) set a random frame number for that animation.

    You could even use the active object directions, and assign a different image for each of the 32 directions, and set a random direction for that active object when the app starts.

    I hope this makes sense to you.

    Regards,
    Sergio

    Hey, thank you.

    I think I understand. Let me give it a short and see if I understood.
    I'll come back with an update, whenever tested this.

    Again, thank you.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!