Most voted "game" questions
24 questions
Sort by count of
-
8
votes1
answer642
viewsHow do I hold an action key until I release the key
In video game games the action displayed when pressing a key is smooth, continuous and immediate. However when implementing a routine that animates a character according to the key pressed using the…
-
2
votes1
answer1853
viewsHow to send data with JS? without updating page
I am trying to create an HTML game and I need a way to send data to a database (MYSQL) and I would like to know how to send data from the site to a server without the page updating. In case anyone…
-
2
votes1
answer175
viewsProblems to develop a Bricks Breaking-style game on Tkinter (collisions with objects)
I’m a few days studying and trying to get the ball to hit the rectangles from above they fade and invert the side from tkinter import * from constantes import * import random class Jogo(): def…
-
1
votes1
answer225
viewsSprites Phaser JS
I have a problem in the animation of my character using Sprite, I have a Sprite with 7 frames of 100x90 for animation left and 7 frames of 100x90 for animation right, the problem is precisely in…
-
1
votes1
answer146
viewsMove Sprite to the mouse position with Phaser
I need to move a Sprite to the mouse position, I used the function game.physics.arcade.moveToPointer(), but only works with sprites who have the body of the type Phaser.Physics.Arcade. How do I use…
-
1
votes1
answer176
viewsPython Guessing game
I have the following problem: every attempt of the user, the code does not accuse if it is cold, hot, warm, boiling. That is, does not give the tips to the player. If anyone can help me I…
-
1
votes0
answers71
viewsDrawing in the middle of the screen with the android canvas
How to draw in the middle of the screen, in all the attempts I made I could just stretch the drawing and not move it to the center of the screen. public class Carta { private static int…
-
1
votes1
answer50
viewsHelp with javascript array [Snakegame.js]
I have a question about Arrays in javascript using P5.js library, I want to make a coral snake, but for this I need to assign the value of the color for each element of the array, for example:…
-
0
votes1
answer117
viewsPython Guess Game
I was doing a job, and I ran into some problems. This code has a limitation: Whenever the player selects some number that has been selected before the code does not invalidate and is considered as…
-
0
votes1
answer70
viewsUnity C# error CS0411
I am having an error in 4 codes in which I do not understand the error. The error that is returned to me is this: error CS0411: The type arguments for method 'Component.GetComponent<T>()'…
-
0
votes1
answer671
viewsUnity get gameobject disabled
My player has shield that is disabled in it, and I have a game manager wants to take care for when you can activate the shield or do not put when I instate the player in the scene the game manager…
-
0
votes1
answer839
viewsHow can I improve my hangman game code?
What tips would you give to improve this code of the Python hangman game? In the "course" I’m doing Python I haven’t learned to use string methods yet. It’s a very simple hangman game, with no…
-
0
votes1
answer424
viewsI cannot access a class in another UNITY 2D script
Hi having trouble calling Playerbase and playerBase in another script This is the mistake that gives: Assets/Scripts/Mainmenu/Selectscreenmanager.Cs(112,16): error CS0246: The type or namespace name…
-
0
votes1
answer35
viewsSet difficulty for a question and when selecting difficulty seek only those questions
Good afternoon! I am finishing a C# Quiz made in Unity. The question I have is, I have several questions that I would like to see an Asset. But I need to set the difficulties for each of the issues.…
-
0
votes0
answers82
viewsAlgorithm of Habbo walls
I’m developing a Javascript game and its environment is very similar to that of Habbo: A floor and walls only at the bottom of the floor. The game map is dynamic and represented by a matrix of…
-
0
votes1
answer35
viewsSprite exchange
Hello, I’m trying to animate the Sprite when it receives damage (changing to a white Sprite), but I’m not getting it, according to the eclipse itself says the error is in ''{'' but in my view they…
-
0
votes1
answer59
viewsUnity - Error: Object Reference not set to an instance of an Object - Instantiate "Spawn" I need help
This is my first game and it runs on Unity but just when I use the shoot button of this error "Unity - Error: Object Reference not set to an instance of an Object - Instantiate". follows the code…
-
0
votes0
answers14
viewsHow to make an Sprite turn red and return to the original color?
I am recreating a game in pygame as a hobby, in this game I have a ship that can take a single shot or keep shooting if you hold the button, but the ship will heat up and gain a red coloring. But…
-
0
votes0
answers39
viewsBirth enemies other than where the player is with Canvas API
I created a small code to illustrate my problem. In this code is drawn a circle (enemy) randomly on the canvas screen every 100ms. But sometimes you end up drawing also where the larger circle is…
-
-1
votes1
answer52
viewsWhat size to use for imported 3d models in Unity 3D?
I’m starting a new project in Unity 3D using free 3d models from the internet, I imported a building but when I opened in Unity it was gigantic compared to the standard character of Unity! My…
-
-1
votes1
answer30
viewsSpawn of midi python notes
i want to create a game style Guitar I made a prototype in Blender I used as a base a course of Infinity Runner in Blender, I would like to create a Pawn of notes that are contained in a file.midi…
-
-1
votes1
answer144
viewsHow do I calculate the angle of an object in java?
In case I am making a game and have a player and an enemy (the enemy does not move). I would like the enemy to always throw himself towards the player and for that I need to find the angle of the…
-
-1
votes1
answer55
viewsHow to make an Scores hanking of a javascript game
I have to generate a table with the first five colors stored in a json object. I believe I have many ways to do this, but what I have achieved so far is to filter the colors by level and by user:…
-
-3
votes2
answers136
viewsWin function in Tic-tac-toe - Python
Hello! Facing the construction of an old game in Python, I’m doing a victory function, which will alert which of the players won the match. Below is the game algorithm under construction: def…