Questions tagged [events]
Event is action that is usually happenes "outside" of main program thread, but handled inside of it.
274
questions
0
votes
0
answers
27
views
UI Toolkit event doesn't let me finish writing the value
I use an integer field to indicate the value of the wanted year and I set a maximum and minimum limit for it and I wanted a function to be called when the wanted year value changes to display the ...
0
votes
0
answers
31
views
How to Prevent Subsystems from Responding to Events from Other Game States
I'm writing a game from scratch in C++, using the book Game Coding Complete as a guide. The engine in the book has an event manager which is used to communicate between the game's systems, such as ...
0
votes
0
answers
121
views
What do you do with SDL2 events?
I have the typical/basic event loop for SDL2 and I'm a little confused on what to do with them or how to handle them or I guess more specifically how should I get the data from these events (e.g ...
0
votes
1
answer
104
views
Sanity Check on my Idea for an Event System for game
So, I recently started making a small game from scratch, with no engine used(I'm a beginner at this) and I want to create an event system of my own. I want to check if my general idea for it is okay(...
0
votes
0
answers
130
views
How to implement events with ECS?
I'm transitioning over to an ECS architecture for a small C++ graphics engine I'm working on and I'm a bit stumped on how to tackle events. One solution I came across was from this Reddit post ...
0
votes
1
answer
40
views
Infinite character loop when trying to play Dialogue
I am trying to make a dialogue system in Unity by following this tutorial: (29) 5 Minute DIALOGUE SYSTEM in UNITY Tutorial - YouTube. There is a slight twist to this and that is that I am triggering ...
1
vote
1
answer
442
views
Area2D only detecting body_exited once
I am new to game development, I am practicing by creating a pong game.
I currently have an Area2D set up with a signal listening for ...
1
vote
0
answers
74
views
2D grid game server - interaction system/dynamic blocks
I'm building a Server-side engine for 2D sandbox game similar to Terraria or Starbound.
The language I use is Dart (similar to JavaScript or C#).
Currently I'm trying to figure out how to make a good ...
0
votes
1
answer
289
views
Clicking UI button calls event twice
I've designed a game where, when a button is clicked, the moving point stops. If the button is clicked again, the moving point starts moving again.
I only click on the button once, but the ...
0
votes
1
answer
398
views
How to design an EventBus(guided by the pub/sub pattern)
I'm working on my game engine, and was faced with the fact, that i don't know how properly design an event system. As a pattern i choose Pub/Sub with an event bus, but i don't know where i should '...
0
votes
1
answer
39
views
3rd Button on UI Seems to not Register the onClick.AddListener()
I have a UIManager meant to control the UI. The UI manager is attached to an empty game object.
The Canvas has three panels, ...
0
votes
0
answers
37
views
Collision detection and damage using call method track
I'm currently implementing damage similar to these two examples, putting the damage logic inside the "call method" track of the player animation.
The problem is that sometimes the game just ...
0
votes
0
answers
35
views
How to make detail tab show information about clicked card?
I'm attempting to create a card game as a new Unreal Dev. Currently I have a UI for the board. That UI has children for the Hands, Field, and Card Details (A window to the side of the field that has a ...
1
vote
1
answer
515
views
Event listeners in code vs persistent event listeners inspector
This is by far the biggest thing I always find myself going in circles over and can never seem to find an approach I'm happy with - setting up regular UnityEvent listeners from code vs. setting up &...
0
votes
1
answer
30
views
Assistance with State Machine Event subscription error? [closed]
My aim is to create events within my various states that will broadcast to other GameObjects when to take certain actions and to send certain data without needing to reference each GameObject.
I have ...