1

Topic: [Help] How do i make own entities (own modification)?

Hall oils,
ehm I'm looking for a little tutorial on how I do on their own mod own entities.
Example would be e.g. the entities of DDrace. In the mod itself is nachgeguckt yes, what position the
Tile current (on the Game Layer) and evaluates them, eg as the Freezetile from.
So what I want is to make its own field, where if a player goes in and then, for example, a message gets sent.
because someone had an idea how to do that? (Please not that complicated, have no idea how the
Entities goes ...)

Lg,
powachill4

(translated with google translator)

2

Re: [Help] How do i make own entities (own modification)?

Can't properly understand this google translated post. Some words even didn't get translated. Could somebody write an appropriate translation? I know it's kinda easy to read word-by-word translated sentences when it comes from our language.

Not Luck, Just Magic.

3

Re: [Help] How do i make own entities (own modification)?

according to his german post here:
http://www.teeworlds.com/forum/viewtopic.php?id=7042

he just wants to know how to add own entities in his own mod and in entities.png
(... not needed text ... )

Remember me? Questions? Just leave a message, I will respond within 72 hrs!

4

Re: [Help] How do i make own entities (own modification)?

Yeah hew wants to know, how to add an effect in a mod when somebdys moving on a special entities tile, f.e:

moving on the blue tile, gets you frozen.

"how does that work?"

5

Re: [Help] How do i make own entities (own modification)?

Yeah, he wants to know, how to give an action to a field on the gamelayer.
For example: You contact a field, and you get a message like:"Hey!"

6

Re: [Help] How do i make own entities (own modification)?

it is possible but, you must learn how do it by yourself!

7 (edited by CarmineZ 2010-12-15 11:11:18)

Re: [Help] How do i make own entities (own modification)?

google can't help for this request, the olny way is to read teeworlds source... try to add a tile at mapitems.hpp, after tile_nohook, put Yours_tile=8, ....... after maybe in character.cpp, at function characther::tick() you can try to put a call to function for control if some tee collide with your tile; if( col_get(round(pos.x),round(pos.y))== 8) then tee has touched Yours_ tile; you can send to the tee your message with...
game.send_chat_target(player->client_id, "write here what you want");

and in entities.png your tile is the next after nohook_tile

8

Re: [Help] How do i make own entities (own modification)?

CarmineZ wrote:

google can't help for this request, the olny way is to read teeworlds source...

Hey, calm down, it's just a bot tongue

Not Luck, Just Magic.

9 (edited by CarmineZ 2010-12-15 16:33:20)

Re: [Help] How do i make own entities (own modification)?

What i wrong? i only try to help powachill4 with my suggestion, maybe now he will be able to resolve his request, i am already calm cool

10 (edited by powachill4 2011-12-02 16:06:12)

Re: [Help] How do i make own entities (own modification)?

funny.
meanwhile i did it big_smile

#edit
err and i see now..
these entitys with COLLISION and DEATH was binary based.
like 101010 and all this.
and well i understand:

collision:
1 if yes, 0 if not..
death:
1 if yes, 0 if not..

and in the final it would be
10 as example for a collision but no death
or 01 for no collision -> death
and maybe 11 would be collision AND death
0 would be simply nothing i think big_smile