Scripts / [Help] Spawn ennemies with trigger script

Author
Message
eddy_de_galdon
8
Years of Service
User Offline
Joined: 24th Oct 2015
Playing:
Posted: 27th Oct 2015 12:46
Hi Game Guru Community ! I've started a little game and i make a little script for spawn entity and i need a little help : i want to make a trigger zone, and when the player are in this zone, they are a timer and when he reached 1000, they spawn a entity in this zone. There is my script, but i don't know how i can make spawn an entity x)
-> I search on game guru forum but they spawn system is for make spawn entity who are present on the map (spawn NO at start)
I want to make an infinite spawn, if it's possible (like a-rpg)

So, how i can make this "special" spawn; if the Spawn() command is usefull for this idea ??
Thanks ^^
--
PM
eddy_de_galdon
8
Years of Service
User Offline
Joined: 24th Oct 2015
Playing:
Posted: 27th Oct 2015 12:49 Edited at: 27th Oct 2015 13:24
(delete this message, i think they was a bug with my reply but no ^^)
edit : i don't see my preview message in this topic because the new user need to be check ^^
PM
Pirate Myke
Forum Support
13
Years of Service
User Offline
Joined: 31st May 2010
Location: El Dorado, California
Posted: 27th Oct 2015 13:20
New users to the forum are on post moderation for the first few posts. So they dont appear immediately.

So probably not an error.
Thanks
Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz, 2400 Mhz, 4 Core(s), 4 Logical Processor(s), 8gb RAM, Nvidia gtx660, Windows 7 Pro 64bit

3com
9
Years of Service
User Offline
Joined: 18th May 2014
Location: Catalonia
Posted: 27th Oct 2015 17:00
If I get your point, so you don't want spawn entities, you want create them "at fly"; if so, this not possible yet in GG, I thought.

The way noafay to do so, is as you point above.
You place entity on the may, so you get the entity id(number) and place it intside spawn statement. if your entity is number 6, so it looks like:
spawn(6).
Mouseovering item, so you get the entity number, bottom, in the status bar.
hth

3com
Laptop: Lenovo - Intel(R) Celeron(R) CPU 1005M @ 1.90GHz

OS: Windows 10 (64) - Ram: 4 gb - Hd: 283 gb - Video card: Intel(R) HD Graphics

PM
Old Larry
GameGuru TGC Backer
12
Years of Service
User Offline
Joined: 26th Apr 2012
Location: Bucharest, Romania
Posted: 30th Oct 2015 08:33 Edited at: 30th Oct 2015 08:52
I use this spawn script for entities (use as trigger zone) :
Smile today, tomorrow could be worse

http://bestradiolarry.ro/fps/

"The best forum, game software, operating system or web platform, it's that software which can give you most of the features and speed, not just amazing graphics."

Login to post a reply

Server time is: 2024-05-05 08:58:43
Your offset time is: 2024-05-05 08:58:43