i want to be able to pick up 6 keys in a specific order and not just when the player collides with each one.
could someone please help?
Printable View
i want to be able to pick up 6 keys in a specific order and not just when the player collides with each one.
could someone please help?
You could manually code this with a counter or an alterable value.
For this example we will call the alterable value that we are using "KeyNumber". And the keys will be called Key1-6
If player is overlapping Key1 and KeyNumber = 0, set KeyNumber to 1.
If player is overlapping Key2 and KeyNumber = 1, set KeyNumber to 2.
If player is overlapping Key3 and KeyNumber = 2, set KeyNumber to 3.
If player is overlapping Key4 and KeyNumber = 3, set KeyNumber to 4.
etc. Do this for all keys and you will only be able to collect them in the order 1-6.
thanks for the help
i have seven sets of keys first set 6 keys so your example will work fine. the next set of keys = 3 and so on.
could i set up the alt varibles to identify each seperate key and still use your example?
thanks excellent skip last post just needed to think got it now thanks for your help