Linked Questions

2 votes
1 answer

Entity component system, Communication between components [duplicate]

I am trying to implement ECS for my simple 2D game. I would like to ask a question about how components should communicate between themselves and with entity. I tried to implement few components, ...
Alexander Bily's user avatar
120 votes
10 answers

How does entity communication work?

I have two user cases: How would entity_A send a take-damage message to entity_B? How ...
deft_code's user avatar
  • 7,612
9 votes
3 answers

Component-based design: handling objects interaction

I'm not sure how exactly objects do things to other objects in a component based design. Say I have an Obj class. I do: ...
jmasterx's user avatar
  • 2,099
8 votes
1 answer

Intersystem communication in a ECS game

Apologies if this question has been answered before, but after relentless searching I couldn't find anything. As many, I've recently jumped on the ECS-bandwagon, and I am currently killing some time ...
trmd's user avatar
  • 81
9 votes
4 answers

Entity component system - game progression

I'm quite new to game development (but not to programming) and I'm trying to figure out what would be the best way to handle inter-world communication. What I mean is this: I've been reading about ...
Tim's user avatar
  • 191
5 votes
3 answers

How can I achieve strong typing with a component messaging system?

I'm looking at implementing a messaging system in my entity component system. I've deduced that I can use an event / queue for passing messages, but right now, I just use a generic object and cast out ...
Vaughan Hilts's user avatar
2 votes
2 answers

How to convert and handle (controlling) OOP game objects via ECS?

I'm having hard time converting OOP game objects to Ashley ECS framework. I have a character, gun & a bullet class. The character uses the gun as weapon, the gun class has a fire method that ...
ronscript's user avatar
  • 501
0 votes
0 answers

Events and Entity Component Systems?

What are common ways to implement Events in an entity component system ? Most games typically have following events : Damage Events Collision Events Area of interest Events Entity Died/Respawn events ...
genaray's user avatar
  • 517
2 votes
1 answer

Making more complicated systems(entity-component-system model question)

I'm using a model where entities are collections of components and components are just data. All the logic goes into systems which operate on components. Making basic systems(for Rendering and ...
user avatar
1 vote
0 answers

Events with Entity Component Systems [duplicate]

I'm currently working on an HTML5 top-down simple RPG game, and as a learning experience I'm building my own little engine from scratch. After reading around a little I decided to go with the Entity ...
Xaan's user avatar
  • 109