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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
limit number of dynamically created entities
darksky Offline
Member

Posts: 52
Threads: 8
Joined: Nov 2012
Reputation: 2
#4
RE: limit number of dynamically created entities

that's not what i meant Smile
i don't want to stop the timer. i want that the entities are continuously created (this is essential for my map because there are some other method calls in spawnstone that i did not mention), but only the newest 100 stones should be on the map.

i don't think I can simply deactivate the old entities because of name clashs
e.g
count = 101 % 100 = 1
setentityactive(stone_1,false) // the old stone
createentity(stone_1) // naming conflict, will get an other name
addcollidecallback(stone_1) // the old stone gets the callback

or am I mistaken in the handling of dublicat names?
02-10-2013, 06:19 PM
Find


Messages In This Thread
RE: limit number of dynamically created entities - by darksky - 02-10-2013, 06:19 PM



Users browsing this thread: 1 Guest(s)