When a boolean is set to (1) I have an actor spawn which contains a web url link.
My question is how can I use a different web url link for each time the actor spawns (without having a ton of separate actors)?
Could a table be used for this?
Yes, I'd say put all the URLs in a table and call them out of there as needed.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad
Hey Jamie, thank you for confirming. What might that look like? It's a little strange because the camera icon spawns based on the boolean but I'm not sure how I would then call the text line form the table each time.
@sinbot, here is a sample of what I'm thinking. I'm not sure it's 100% what you describe but hopefully it points you in the right direction. Press the button and another actor will appear for 1 second displaying a URL. The red/url actor is pulling its content out of the table. Let me know if you have any questions.
Thank you Jamie. So this is pretty much what I have going on right now but the thing I am trying to figure out is.. what would be best way to call a particular url link specifically. since the actor containing the link is spawning, I'm having hard time figuring out how to do that because I would have to let the spawned actor know in advance which link it needs to open. I know I could create a lot of booleans to do this but trying to see if there is simplified way. Hope it makes sense lol. Difficult to explain.
If it works in your case I would do something like the demo I posted. You can specify which URL to load from the table just by knowing its row number (or column number if you wanted to use columns). You can use that number in one actor that can display any/all URLs in the table as needed. Maybe i'm missing something or misunderstanding but that is how I would handle it.