Event is action that is usually happenes "outside" of main program thread, but handled inside of it.

learn more… | top users | synonyms

0
votes
2answers
961 views

How to change the speed of the gameobject moving on the itween path

I have set an itween path for an object to move.And I have written the code as iTween.MoveTo(gameObject,iTween.Hash ("path",iTweenPath.GetPath("train"),"time",300)); The above code is working for ...
1
vote
1answer
34 views

SDL2 SDL_PollEvent endless polling on key hold

What is wrong with SDL2 SDL_PollEvent() function? When I press-and-hold a key it enters "while (SDL_PollEvent())" block each frame. If in previous frame event queue was emptied and in new frame I ...
-1
votes
1answer
1k views

Windows Events lag behind

I'm making a simple openGL application and so far I can get the window to display, the update/render loop work, and it processes windows events (like WM_QUIT and WM_MOUSE). I've found though that ...
2
votes
0answers
48 views

How can I model AI Interactions across the entire game world without computing them individually?

I'm making a 2D top-down tile-based game in C++ using SDL2. The game uses a very large world map (think Dwarf Fortress). My world terrain is generated using a noise function, another function is ...
1
vote
0answers
40 views

Unity: onEditEnd and onSubmit only firing from Return key

I have an InputField in my UI, but currently I can only submit its contents via the Return key. I tried mapping other buttons to the Submit action (e.g. the tab key on keyboard and the X button on my ...
1
vote
0answers
15 views

How to attach “exiting” event in OpenFL?

What is the exiting event (closing app by user or system) in new OpenFL? And how does it differs between target platforms?
1
vote
0answers
741 views

Colliding without physics in Unity: is it possible to put OnTriggerEnter in the moving character?

My main question is: is it possible to put OnTriggerEnter in a script that goes attached to the moving character instead of to trigger area/object? Let me explain my exact need. I want to detect the ...
1
vote
0answers
44 views

How to synchronize events to clients?

I need to keep the client updated on data that's rarely changed (like health) or when an event occurs (like when a player is attacked and should have "-10 hp" above him). Those 2 specific part should ...
1
vote
0answers
410 views

How do I manually submit a new UI InputField in code?

I need some conditions for submitting the text inside of an Inputfield, however I cannot find a way to do this via code. I was expecting something simple like with WPF or WinForms, but I cannot find ...
1
vote
0answers
185 views

Farseer Physics EndContact events don't fire for all registered delegates

Here's my situation: I have several objects that contain a body and a fixture. They are set to sensor = true; atmosphere = BodyFactory.CreateCircle(world, atmosphereRadius / Level.METER_IN_PIXELS, ...
0
votes
0answers
9 views

How do I add EventTriggers to Multiple instantiated prefabs from a list?

I have a prefab which I am spawning a dynamic amount of. I want to attach an event trigger to each one of them, on pointerclick, to call a method accepting an int as parameter. I have the following ...
0
votes
0answers
20 views

Event handling for moving components in an HTML/JS game

I have developed a working prototype of an arkenoid-kind of game using plain HTML/JS/CSS3. I am using the DOM to display game elements. The whole game is infact contained inside a table element. Table ...
0
votes
0answers
43 views

How do I structure code that triggers story events at certain places?

I am planning to make a small game with a story that I have thought about for some time now. I am trying to decide how to handle stuff like if the character walks to this hitbox then a guy will come ...
0
votes
0answers
76 views

How to make a PROPER main menu (or any other UI windows/modals) in Unity?

So, I'm currently learning both about Unity for the first time as well as the 'new' 2D UI system, but I'm having a hard time figuring out how to make windows, modals/dialogs, main menus etc. which are ...
0
votes
0answers
61 views

Multiple Event System in order to have a mainmenu and a submenu buttons selected

I'm developing a GUI at the moment for a game and I'm having problems making two buttons be selected at same time. I already looked around and the 2 work arounds I found was by extending the ...
0
votes
0answers
75 views

Unity C# event handler not triggered

I am trying out a system in my game in which I have 3 classes: EventService: MonoBehavior EventStore (a normal c# class) EventViewController: MonoBehavior EventStore registers some callbacks to ...
0
votes
0answers
25 views

Performance slows down on click event

I'm currently working on a game in node using socket.io and drawing onto canvas. I'm noticing that when I click during the game, character movement slows to a crawl. For context: I'm updating x,y ...
0
votes
0answers
149 views

Unity - How to detect collision on child object collider

How can we make to the event "OnTriggerEnter2D" collisions on the objects children of the object with the c# event script? Look this: Is there any way to assign the event using "Delegates"? ...
0
votes
0answers
32 views

Events Not Staying Attached in Unity 5

I'm successfully attaching a handler to an event, the event is firing, and somewhere in between then the event handler disappears. I don't know why, but I suspect it may have something to do with a ...
0
votes
0answers
45 views

How to load in movable (full) models?

I've created a rendering engine in Haskell, and I've got an OBJ model loader. Obviously, the models I've loaded in a complete set of vertices, normals and texture coordinates for the model. But say, ...
0
votes
0answers
118 views

How to make touch events work in a match three type game

In "match three" types of games like Crazy Kitchen, when the user touches an image, he can drag his finger over multiple images and create a change in each image he touches in a single gesture. You ...
0
votes
0answers
47 views

changing camera's reference point position by a keyboard event

I would like to change the camera's reference point position using gluLookAt. I would like that it changes when I press for exemle 'a'. I tried with: void VueOpenGL::Paint(wxPaintEvent&){ ...