The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
17 views

base.Update() makes coroutine stop

I have a base class for my physical objects. It has an update method like in the code below. public class PhysicsObjectBase : MonoBehaviour { public virtual void Update() { if (...
-1
votes
1answer
42 views

How to update everything but 1 thing in pygame and python

What I'm doing So I'm developing a game for my Computer Science final with python & pygame. It's done other then I have to make a main menu. I've been developing it over the last 2 weeks because ...
0
votes
0answers
27 views

Listening to mouse clicks in a seperate thread

I'm developing a card game and I need to pause the game logic until the player clicks on a valid card game. I separated the player's Update method in to a seperate thread, and I'm doing this ...
0
votes
2answers
48 views

How do I pass my objects to the update method?

I've had formal education in Java for around half a year now, and as a hobby I would like to attempt game development. I've downloaded the Slick2d library to help with this. I've run into a problem ...
0
votes
1answer
27 views

Data overwritten in MapSubresource() method

I am trying to dynamically update the vertex buffer in a UWP project using SharpDX, once every time I call the following method, where context is the device context member. public void ...
64
votes
5answers
7k views

What is the point of update independent rendering in a game loop?

There are dozens of articles, books and discussions out there on game loops. However, I pretty often come across something like this: while(running) { processInput(); while(isTimeForUpdate) ...
1
vote
3answers
98 views

Custom Update Function -OR- Multiple TimeScales

I'm trying to create some interesting variations on timescales in my game. In essence, I'd like at least two, probably three or four separate timescales. The player - the player timescale is likely ...
1
vote
0answers
20 views

Declaring another alpha or beta testing after a game app for Android (APK file) is uploaded and already published in Google Play Store

This question is related about alpha or beta release in Google Play Store. . Let's say my app (APK file) was uploaded in alpha/beta testing. If one of the testers satisfied or quick fixes on the bugs, ...
0
votes
1answer
92 views

Unity, Steam and updaters!

I am probably asking a question answered here already; but I have yet to find the answer! Can anyone here help me with how updates work for your games? I know that through visual basic you can create ...
1
vote
2answers
147 views

Game loop with fixed timestep gives strange result

So I've read the famous article at http://www.koonsolo.com/news/dewitters-gameloop/comment-page-2/#comments which describes different methods of implementing a game loop. I've tried to implement the ...
1
vote
1answer
77 views

Increase speed with each enemy destroyed?

I need some help with coding this idea: "For each Target destroyed, increase the Gunner's speed by (speed variable)". The idea is that the Gunner is automatically moving, and I want it to become more ...
0
votes
2answers
57 views

Object shrinks at same rate no matter what

I am using the following code to shrink a sprite: public bool shrinking = false; public float targetScale = 0.1f; public float shrinkSpeed = 0.1f; void Update () { if(shrinking) { ...
6
votes
2answers
238 views

Is it safe to base a combo system in frames instead of time?

I'm building a prototype for a fighting game (not vs, something like Final Fight). I'm trying to define the data for the player combo tree and had a look around looking for inspiration and have seen ...
3
votes
1answer
114 views

Upgrading Unity from 5.1 to 5.3.4 has broken game, specifically models made in Blender

I recently decided to upgrade Unity after putting it off for some time as I have a rather sizable project started in 5.1. I knew there would be some hurdles, however, I have had very little luck in ...
1
vote
3answers
72 views

Static variable not holding its value

I am creating a real time multiplayer game in Unity 3d. When a game ends I set a static boolean value called "waitingToEndGame" to true. In Update() it waits a few seconds before moving to a new scene ...
0
votes
2answers
70 views

Running subsystems at difference update intervals

I want to update the rendering at 60fps, but the logic at some lower rate, say 15Hz. But if an only moves when the game logic updates, then it would appear to stutter badly especially for lower ...
0
votes
1answer
68 views

Where to install game from my game launcher

I've created a game launcher that I'm pretty proud of :). I use nw.js and so the interface uses html/javascript/css. It makes ajax api calls to my web service that I've written in C# to do things like ...
5
votes
1answer
251 views

Making an auto patcher

I'm currently in the last phases of an original release for my upcoming risk game - I'm looking at making a patching system to autopatch the game. My current concept for it is- 1: Player opens the ...
1
vote
1answer
174 views

What Is A Good Way To Make A Self Updating Game? (Python) [closed]

I've been making games and I have always had a problem if I wanted to sell a game. People would have to re-buy games to get the updated version. Does anyone have any ideas on how to make a self ...
2
votes
2answers
870 views

2D Game has very bad lag because of one script?

I am making somewhat of a flappy bird clone (mostly for practice) and everything works fine, but it is just really slow with a low FPS of 13 and a max FPS of 28. Why would this be? So I ran a check ...
1
vote
2answers
293 views

In-app update, live update, hotfix for mobile game

I'm researching how to make an in app update on mobile game. When there is a hotfix, or an update, users don't have to go to Playstore, or App store to update but update inside the game. (E.g. Clash ...
1
vote
1answer
93 views

Playing with hashmap in drawing

I'm developing a game in Java for Android, using LibGDX. In my render(), between the batch.begin() and batch.end() I'm running through all the game objects and draw them. Every game object is stored ...
1
vote
2answers
167 views

2d mmo open world connection and reconnection

I am trying to create an 2d html5 open word (the sprite does not have any fancy flare, just shapes around) with only maximum of 10 player at once. My question is how to create a seamless join for new ...
0
votes
2answers
65 views

How to handle mesh update in its vertex buffer

suppose i have a mesh, it can undergo any kind of changes - bend, stretch, even been torn. How should i update vertex buffer in DirectX for this mesh. For now i recreate it every time, and i don't see ...
2
votes
2answers
569 views

Any way to load/execute scripts (game-logic) included in a post-release DLC (Unity3D AssetBundles) on iOS since it seems its not allowed?

We are making a game where players will be granted access to new levels every week and these new levels will probably be downloaded from our server as Unity Asset Bundles The only issue is, as ...
3
votes
1answer
2k views

How can I make a self-updating game launcher? [closed]

I have been creating a game with java, and before I release it I wanted to make a launcher that is connected to the game's website. Basically I need to make a launcher that updates itself when I have ...
0
votes
2answers
4k views

How to create a Update function in Java

I have recently started using Java, but have been programming in javascript, and actionscript 3 for a while. I am used to the language giving me the ability to simply do something like: private ...
1
vote
1answer
89 views

In the game loop, apply dt before the loop starts, or after it finishes?

Say I have a Game class with an update loop that receives a time increment dt by parameter. I was wondering if it's better or customary to apply this dt before the loop starts or after the loop ...
1
vote
2answers
328 views

Game networking, limiting amount of movement packets

I have been developing a server/client model for a game project I am working on. Everything works great, client side prediction works, server reconciliation works. Basically, the character can move ...
0
votes
1answer
239 views

How to use multiplication operation in game render delta time?

We are using delta time like this: private static final float SPEED = 200f; // Moving pixels in one second @Override public void render(float delta) { myObject.vx += SPEED * delta; myObject....
1
vote
2answers
193 views

Updating children nodes in a game engine

I am writing my own small game engine (thin layer based on SDL2) in C++. My base class is Node (contains information on an entity's position, scale, rotation, etc.), And I've got two special ...
5
votes
1answer
252 views

What does the update button in the Unreal Engine launcher actually update the engine to?

Unreal Engine 4 seems to have a very handy way of managing different versions of the engine - mainly you get to keep several copies and choose which one to launch. That said, not having used the new ...
3
votes
3answers
1k views

In GameMaker Studio, how can I make an auto-updater for my game?

I would like to let players update their copy of my game by clicking a button, which would: Check for updates Download the update Prompt the user to restart the game I want to do this because my ...
0
votes
1answer
154 views

ASP.NET Browser game Timers

I am developing a simple browser game, using ASP.NET, C# and SQL Server 2012. I need to implement build time of some unit or building. One way would be storing finish date to database and just fetch ...
1
vote
1answer
656 views

Problem with update/render in game loop (scrolling view, render interpolation)

I use SFML 2.2 and program a 2d prototype game (2d mario style where the camera follows the player). I am experiencing the buggy imagery during rendering, for example a chunk of vertex array blocks ...
2
votes
1answer
2k views

How to remove the old sprites in pygame and show them at a different location

I am trying to show the motion of some basketballs towards walle using the pygae sprites. The idea is that I don't know how to remove the old ones so they won't show. Is there a move method so that it ...
0
votes
1answer
57 views

Mouse state not acting as I intend it to

I am creating an inventory system. I have it working well, but for some reason when I pick up an item from a slot(lets say slot 2 of 20) and drop it into that same slot(slot 2) the mouse state fails ...
3
votes
1answer
89 views

Informing objects within a particular state of the world state

Following the State pattern, every state in my game is a derived object that reflects a particular segment of the game (MenuState, PlayingState, GameOverState, etc.) Each of those state objects holds ...
1
vote
2answers
105 views

Fast determination of whether objects are onscreen in 2D

So currently, I have this in each object's renderer's update method: float a = transform.position.x * Main.scale; float b = transform.position.y * Main.scale; float c = Camera....
1
vote
1answer
186 views

Electronic circuit simulator four-way flood-filling issues

I've made an electronic circuit board simulator which has simply 3 types of tiles: wires, power sources, and inverters. Wires connect to anything they touch, other than the sides of inverters; ...
4
votes
2answers
275 views

How would I go about updating my electronic circuit simulator's 'electricity'?

I have made an application which allows the user to place down wires, power sources, and inverters on a virtual circuit board. All connections between tiles are automatic, as shown here: As you can ...
0
votes
1answer
632 views

Slick and Timers?

I'm making a game where I need events to happen in a precise amount of time. Explanation : I want that event A happens at 12000ms, and event B happens every 10000ms. So "if"s should looks like this. ...
0
votes
0answers
352 views

Unity not updating sprite animations (possible bug)

I have a simple animation of a foot which i want to change sprites from one sprite to another, which is seen in the following two images: now as one can see in the animation timeline there is a ...
1
vote
1answer
2k views

Should game logic update per second or per frame?

I'm trying to wrap my head around how and when to update an entities position. My game loop updates logic at 25 FPS and renders at 50-60 (Depending on the computer hardware). So lets say I'm moving ...
1
vote
1answer
502 views

Slow Update to improve performance?

For my enemy AI, I only need decision making to be done every second or every half second. Would it make a meaningful difference if I didn't run the analyzing method in the Update, but rather invoked ...
2
votes
2answers
330 views

Events vs Pinging: How should I structure my HUD-updating code?

I'm starting to develop a 2D fighting game using C++ and SMFL. I'm relying (at least sort of) on a Entity Design Pattern. I'm struggling to see how my code should update and manage a heads-up-...
2
votes
1answer
631 views

does order of updates and renders matter?

I know in a game loop there needs to be an order like physics should update before rendering. So, I have created two separate functions: update and render and the game loops like below: while(running)...
1
vote
2answers
246 views

Should the game update loop compensate for slowness

I am building a game engine and considering the design for the core game loop that will drive the game. In the most basic form, the implementation looks similar to this (in pseudo-code): while (game....
0
votes
1answer
142 views

Separate game clocks/intervals in XNA

I am making a real time strategy game in XNA. I have separated the Client (rendering, input, sound) code from the Sim (game logic). I want to have features like replaying and fast forwarding. Also, I ...
1
vote
2answers
204 views

Updating the jump in game

I am making a Java game and I want my game to run the same on any FPS so I'm using time delta between each update. This is the update method of the Player: public void update(long timeDelta) { ...