Switching Content In & Out While Spawning Different Actors
Hello,
I am trying to figure out how to change content on a level without changing to a different level.
Example:
I have item falling from the top of ipad screen.
the player catches those items.
The side of the screen tells the player which item he needs to catch before moving on to the next item.
So once he grabs the required items the side screen changes to a NEW item.
and repeat.
The problem I am having is swapping out information to/for the player.
I have an actor spawning the items for him to catch.
I hope this all make sense its been hurting my head on the logic.
I have tried some true false attributes but my logic my be wrong
thanks in advance
I am trying to figure out how to change content on a level without changing to a different level.
Example:
I have item falling from the top of ipad screen.
the player catches those items.
The side of the screen tells the player which item he needs to catch before moving on to the next item.
So once he grabs the required items the side screen changes to a NEW item.
and repeat.
The problem I am having is swapping out information to/for the player.
I have an actor spawning the items for him to catch.
I hope this all make sense its been hurting my head on the logic.
I have tried some true false attributes but my logic my be wrong
thanks in advance
Best Answer
-
kinzua
Posts: 554
@CGOStudios for the '%4' function.. check out @tshirtbooth's video to change sound on & off... I think you'll find it easier and will also be able to make a lighter code.
cheers
Answers
When the player reaches the required amount change attribute game.Item.
Then have some rules in the spawner like if game.Item=1 spawn item1 if game.Item=2 spawn item2 etc.
Hope this helps.
Darren.
Create a mission attribute. Now design a sequence. It starts from assigning the image of the mission in the tab.. Then the spawner to spawn that actor.
When the player collects that actor.. complete the mission and start all over again.
So there are like 4 steps.. So have an attribute .. lets say 'Mission' and for every action .. do a '(Mission +1)%4'...
So when the mission is '0'. You start all over again.
@UtopianGames &
@kinzua
here is my logic:
When Player touches a letter / letters ( to create a word )
I want it to remember the letters touched
When they are true or 1
Change the display Word and letters being spawned to a new set of letters.
I am not sure what( %4 means) and also how do you reset a attribute back to 0?
Thank you so much for your responses
edit:
I think I found it, thanks!