Switching Content In & Out While Spawning Different Actors

GAMEINTERNGAMEINTERN PRO Posts: 56
edited April 2012 in Working with GS (Mac)
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

Best Answer

  • kinzuakinzua Posts: 554
    Accepted Answer
    @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

  • UtopianGamesUtopianGames Member Posts: 5,692
    Not 100% sure exactly what you want but it sounds like you need an game.integer...something like game.Items and set it to 0.

    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.

  • kinzuakinzua Member Posts: 554
    Dont know if this would help.

    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.
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Thank for the help all,

    @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 :)
  • GAMEINTERNGAMEINTERN PRO Posts: 56
    edited April 2012
    Thanks, I am looking for it but cant find it. Is it under Tshirtbooth or Cookbook videos?

    edit:

    I think I found it, thanks!

  • GAMEINTERNGAMEINTERN PRO Posts: 56
    Wait here it is:

Sign In or Register to comment.