This is my first project in Hype and I am super hyped !
My project consists of 4 screens.
Screen 1: List of Buttons. Click on a button, takes you to Screen 2.
Screen 2: Images displayed based on the selected button. Has 2 more options buttons to take you to screen 3 and 4 respectively.
Screen 3 and 4: Transitioned from Screen 2. Has different images like previous screen, based on the button selected from screen 1.
I need to do it programmatically to avoid recreating the same scene for each button.
- My first scene should display list of images and when I click on them it should take me to the next screen. Should I create these as images with OnClick actions or can I create a button and fill it with an image?
- How do I define the name of the objects in the scene so that I can use them in the function ? Is it the unique element ID under the Identity tab?
- How do I create the ‘set’ function in Screen 2 that will set the image value of my objects that I defined programmatically?
- How can I call the set function from the first scene and set a parameter of the clicked object, or how do I pass a value from one scene to another (like segues in iOS, intents in Android)
Any suggestions or best practices? I have been searching around the forum and the documentation and found some useful examples.
I have plans to make an iOS and Android App based on this as well.