Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Restoring broken item
Adrianis Offline
Senior Member

Posts: 620
Threads: 6
Joined: Feb 2012
Reputation: 27
#16
RE: Restoring broken item

Hmmm ok, well in that case, is there any reason you need these things to actually 'respawn' instead of just having 5 of them lying around?

You could cut out a whole load of these issues by just having 5 copies ready in the level, and you can still keep the relevant functions generic enough to deal with any of those 5, since you will know the names and can iterate through them easily, and if you are limiting the number of tries the player has then there doesn't seem to be any reason (to my limited understanding of your situation) to keep the respawn, other than the excitement and respect of solving a scripting issue Smile

It'll then be clear to the player without any abstract message that they have a limited number of tries.

If you want to keep track of how many have been destroyed then instead of copying the function 5 times you can run the check inside a For loop to iterate through all of the potash's to check their health. Then you have the choice of whether to track them through a single variable adding 1 up to 5 every time one is destroyed, or a variable for each of them depending on which suits your situation better

Would that work?

08-07-2013, 10:27 PM
Find


Messages In This Thread
Restoring broken item - by Damascus - 08-04-2013, 04:05 AM
RE: Restoring broken item - by 7heDubz - 08-04-2013, 05:13 AM
RE: Restoring broken item - by Daemian - 08-04-2013, 05:20 AM
RE: Restoring broken item - by Damascus - 08-04-2013, 05:48 AM
RE: Restoring broken item - by Your Computer - 08-04-2013, 09:48 AM
RE: Restoring broken item - by Statyk - 08-05-2013, 03:19 AM
RE: Restoring broken item - by Damascus - 08-05-2013, 06:02 AM
RE: Restoring broken item - by Daemian - 08-05-2013, 05:57 AM
RE: Restoring broken item - by Adrianis - 08-05-2013, 12:25 PM
RE: Restoring broken item - by Damascus - 08-05-2013, 10:43 PM
RE: Restoring broken item - by Adrianis - 08-06-2013, 10:53 AM
RE: Restoring broken item - by Damascus - 08-07-2013, 01:40 AM
RE: Restoring broken item - by Damascus - 08-07-2013, 04:30 AM
RE: Restoring broken item - by Adrianis - 08-07-2013, 09:40 AM
RE: Restoring broken item - by Damascus - 08-07-2013, 08:51 PM
RE: Restoring broken item - by Adrianis - 08-07-2013, 10:27 PM
RE: Restoring broken item - by Damascus - 08-08-2013, 12:24 AM
RE: Restoring broken item - by Adrianis - 08-08-2013, 11:11 AM
RE: Restoring broken item - by Damascus - 08-08-2013, 09:26 PM



Users browsing this thread: 2 Guest(s)