Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 1,086 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How do I create an spawning point in WED? #357927
02/09/11 01:51
02/09/11 01:51
Joined: Oct 2010
Posts: 11
Netherlands Antilles
A
aaronde Offline OP
Newbie
aaronde  Offline OP
Newbie
A

Joined: Oct 2010
Posts: 11
Netherlands Antilles
I have a couple of enemy's that the player must kill and they need to keep spawning. A new enemy must be created every 5 seconds (Or random, not important now).

I can create this from lite-C. I just need to know the coordinate of the point where I will spawn the enemy's.

What I would like to do is to create an object in WED where I will attach an action to it that will spawn the enemy's at the object's location. I know I could use a simple object like an invisible cube. But I though that there must be a way to create an empty object.

This is not a big problem, because my 100% Lite-C solution works well and it's not difficult to work with. But using an object can give me more advantages. Like using the skills to store information like, the speed of the enemy's that will spawn or how deadly they will be and change these setting's in runtime easily.


[NOTE]
I don't think the title describes the post well, if someone has a better title please post it.

Re: How do I create an spawning point in WED? [Re: aaronde] #357929
02/09/11 02:17
02/09/11 02:17
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
The title is fine.

I don't understand your problem, what's bad about a passable, invisible (cube) entity?


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How do I create an spawning point in WED? [Re: Superku] #357934
02/09/11 04:41
02/09/11 04:41
Joined: Oct 2010
Posts: 11
Netherlands Antilles
A
aaronde Offline OP
Newbie
aaronde  Offline OP
Newbie
A

Joined: Oct 2010
Posts: 11
Netherlands Antilles
There is no problem with it. I think that is what I will use. Just asking because, I used to work with an other game engine (2d) and it was possible to create an empty object. Using a cube looks like an work around for this problem to me.

What would be the best way to make the cube invisible?

Re: How do I create an spawning point in WED? [Re: aaronde] #357935
02/09/11 04:47
02/09/11 04:47
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Ok. In gamestudio, you only can create "empty" objects via script (ent_create(NULL,...)).
Quote:
What would be the best way to make the cube invisible?

Place the object in your level, attach your spawn action and write
set(my,PASSABLE | INVISIBLE);
in your script.
Alternatively, you can set the flags in WED, remove the action and choose a name for that entity. Then you can access the object with "ent_for_name".


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: How do I create an spawning point in WED? [Re: Superku] #357945
02/09/11 08:26
02/09/11 08:26
Joined: Jan 2002
Posts: 300
Usa
Rich Offline
Senior Member
Rich  Offline
Senior Member

Joined: Jan 2002
Posts: 300
Usa
I'm using the same sort of object for a spawn point in a project of mine. Check into the "dynamic" flag in manual.


A8 com / A7 free

Moderated by  HeelX, rvL_eXile 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1