4,761 questions
0
votes
0
answers
15
views
Nea 2d game on unity need help to present interactable sprites and make words appear when typing
In my previous post, I didn't add many details and wasn't able to get effective help, so here I go again.
I am currently creating a 2d game inspired by both papers please and not my neighbour at the ...
1
vote
0
answers
68
views
nea game doesn't allow me to present and click on sprites
I'm creating a game for my nea and I have tried multiple times to make me as a user of the game to press on documents that my character presents, and to be able to interact with it. I have checked ...
1
vote
0
answers
68
views
Render Texture Triangle From Vertexes and Uvs
I'm attempting to render out part of a spritesheet to a new standalone texture. I have the triangles, vertexes and uv coords of my sprite but my code only correctly renders the first triangle not the ...
3
votes
0
answers
114
views
C64 moving sprite issue
I'm writing a Chrome Dino demake on the c64 but the code won't work. Sprite 0 won't move and there are some garbage pixels on top of the screen.
A demake is a video game remake that adapts a modern ...
2
votes
1
answer
77
views
Unity ReadObject in profiler causing spike for sprite animations
So it appears in the profiler that whenever one of our sprite animations is played for the first time, it causes a spike on the CPU as the sprite atlases are loaded into memory. This can cause a ...
2
votes
0
answers
99
views
Cannot Get Sprite to Animate in Ren'Py
I am unable to get the images of a sprite to change in Ren'Py.
All the images I intended to add are in the directory, and I wrote the code exactly how it was stated in the tutorial, but it does not ...
2
votes
2
answers
80
views
Multiple frame animation in HTML canvas
I've been trying to find an answer for a while but most searches return results for animating shapes not frame animation. Given a canvas with a 2d context to which I draw sprites with drawImage, what'...
0
votes
0
answers
52
views
How to hit-detect sprites but pass through background clicks in a transparent window?
I have an app built [in Objective C] for MacOS using SKScene and GameScene that has a floating window with some text in it (a clock). It works great, floats and shows the text. I have implemented hit ...
0
votes
0
answers
64
views
SkiFree Sprite Layout Order Issue
I am writing a beginner Java version of the popular game of '90: SkiFree for personal learning. I managed to create most of the game display, but I have an issue with the layout management there ...
0
votes
1
answer
41
views
SpriteKit Beginner: Mouse Node Not Moving to Random Locations
I’m a beginner playing around with SpriteKit, and I created a file called GameScene. It contains only one node called mouse. My goal is to animate the mouse and move it to random locations when the ...
-1
votes
1
answer
43
views
Issue with Sprite not showing up, using Pygame [duplicate]
I'm following a begginner tutorial to start using pygame, but I'm stuck with the sprite display. I'm not able to make it visible on screen, please find below the code related to the sprite.
I'm not ...
1
vote
0
answers
77
views
svg sprite (lineargradient) not working in Safari
<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<linearGradient id="...
0
votes
0
answers
32
views
I'm trying sprite animations in React for the first time and my character keeps teleporting to its starting position
It's my first time messing around with sprites in ReactJs and I wanted to make something for fun.
There is a canvas where a character randomly walks left/right. My sprite sheet has 3 columns and 6 ...
0
votes
1
answer
56
views
CSS Sprites in WordPress
The code below shows the use of a sprite that should normally display images in B&W and when the mouse is hovered over the images, they become colored, but without showing the transitions between ...
0
votes
0
answers
80
views
How to execute code when clicking on button in properties panel (Blender add-on Python)?
Blender 3d 2.90.1,
Python 3.10,
bpy
Hello, I am working on an add-on to automate the process of creating sprites that I assemble in the form of spritesheets. My code worked so far but as soon as I ...
0
votes
1
answer
198
views
Character with multiple sprites doesn't flip correctly when scaling the root node
I'm working on a 2D game in Godot (version 4.3) and have a character composed of multiple sprites (e.g., body, head, equipment). These sprites are all children of a CharacterBody2D root node.
I want ...
1
vote
0
answers
28
views
Unreal, Mask out player model that overlaps a weapon for sprite sheet export
I am able to create an animation sequence and export 8 frames for walking as a sprite sheet.
I want to export the player model without a weapon (which I have done)
I want to export the weapons ...
0
votes
1
answer
89
views
Can't stretch sprite after adding with 2D Objects - Sprite
Unity has the ability to set boundaries for a sprite. This allows me to stretch the image without losing quality and save borders. This is usually used to create menus and pop-ups. I add such a sprite ...
0
votes
0
answers
125
views
MakeSpriteFont.exe downloaded off github says "can't find font" no matter what
MakeSpriteFont.exe downloaded off github says "can't find font" no matter what. I tried copying fonts to its local dir, I tried specific path for the font, in root, windows font folder, ...
0
votes
1
answer
424
views
Importing texture button from spritesheet in Godot 4
I have a spritesheet with all my buttons, and would like to use individual sprites as my buttons, not the entire sheet. Is there a way to do this? (I am a complete beginner)
I tried putting the file ...
0
votes
1
answer
49
views
I need help sprite animation with CSS and JS
I made this simple project that allows a 4-image sprite to move in one direction, but I would like to know how I can do this so that whenever the D key (key that moves the character) is not being ...
0
votes
0
answers
64
views
Sprite Renderer tile from pivot
In Unity I have a Sprite Renderer set to tiled draw mode.
The import settings look like this (custom pivot, custom borders):
I'd like to reposition the renderer object dynamically (in the OnValidate ...
0
votes
1
answer
239
views
How to skip svg sprites cache for web development
my icon.svg sprite file look like this
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" style="display:none">
<symbol fill="...
0
votes
1
answer
79
views
Pygame - Load letters and display text for an image
I'm following Tech with Tim's guide on how to create a platformer game link
I created a function to load letters from a sprite image, based on his load_sprites function:
def ...
-1
votes
1
answer
274
views
Having Trouble making a Simple Dress Up Game in Pygame [duplicate]
I'm trying to make a simple dress up game where there are three buttons. Depending on which button you press, you can put either a pink, blue, or green shirt on a mannequin.
However, my problem is ...
0
votes
0
answers
48
views
I can't remove the gaps between the edges of the cube in a sprite made from an SVG image
Most learned friends
I have an SVG cube icon. I made a sprite out of it, but there are gaps between the edges of the cube that take on the background color of the div in which the cube is located. How ...
0
votes
0
answers
58
views
Simple Sprite Animation Not Playing As Intended
I have a simple animation for lava that I want to play. Ideally, it should play only when visible on the screen, BUT for now, it is set to always animate (screenshot attached).
Each Lava Pool has 1 ...
0
votes
1
answer
74
views
Shrink a rotating object up to point
I have an object (orange) that is tied to a hinge joint (black) and can rotate around it. At some point when I detect collision with other object I have to cut it there (red). In order to do that I ...
-1
votes
1
answer
202
views
Trying to make an Isometric game without isometric tile rendering [duplicate]
I am a high school student programming a pygame game for a school project that is due in about a week and a half from now and my problem is if I am able to create an isometric game but instead of tile ...
0
votes
1
answer
133
views
SpriteRenderer changing sprite on runtime not working in android build?
If you try creating test scene, with a simple script to change sprite every a period of time.
The sprite doesn't change, but if you try to log the changed sprite name, you'll see it has changed ...
1
vote
1
answer
451
views
Randomly Choose Animation in an Animated Sprite
Firstly, gotta make sure AnimatedSprite2D is the right node to use. I'm making one of those random clicker games where you click a button and get a random chance of getting different items. I need ...
0
votes
1
answer
62
views
SVG Sprite still working even after removing object
In my index.shtml I have
<object data="icons/svg-sprite.svg" type="image/svg+xml" width="0" height="0" style="display: none;"></object>
...
1
vote
1
answer
120
views
Having troubles with creating sprites in tasm 8086
I want to create 5 submarine for the player and 5 to the computer (10 total) by using the sprites method. When i checked the DosBox for mistakes i saw that all of my sprites lines have the same error ...
0
votes
0
answers
215
views
Matter.JS Scaling textures automatically + sprites not on body
I am making a game where every time you click, a fruit falls down from the mouse coordinates. The game was working when I was working with plain colours, so then I decided to add textures. However, I ...
-1
votes
1
answer
73
views
Clip some parts of SpriteComponent
I loaded a full screen image using SpriteComponent and trying to remove some parts of that image using canvas.clipPath.
Expected: The image will be rendered except all the clipped parts
Issue: The ...
1
vote
0
answers
52
views
Why do the enemy sprites disappear from the screen when they reach the edge of the screen?
I am currently trying to write a version of space invaders using p5.play (it's the language that my particular college uses) but whenever the sprites reach the right edge of the screen they all ...
0
votes
1
answer
133
views
How to render sprites for a snake game using SFML and C++
The game works fine, but its using rectangle shapes and I want to render the snake parts using Sprites. Here is the code (Yeah It's not that clean I just wanted to get this working):
#include <SFML/...
1
vote
1
answer
20
views
Drag SKShapeNode respecting other SKShapeNode's boundaries
I need to drag a Shape Node avoiding other shapes, if they hit then I would like boundaries to not be crossed. So if I have a ceiling and I drag the a ball up to it, I want it to hit the ceiling and ...
0
votes
2
answers
115
views
Create SVG, set href instead of xlink:href in pure Javascript
I have an SVG sprite with all my icons, and when dinamically adding an icon in Javascript I use thise code:
let closeButton = document.createElementNS("http://www.w3.org/2000/svg", "svg&...
0
votes
2
answers
440
views
Unity 2D - animated background
I'm working on a game with free pixel adventure sprites. The GIF below is a level that the sprite creator put, and I have no idea how to create such a background in Unity (repeat with go down ...
0
votes
1
answer
116
views
Sprite_index is not set
I'm following a YouTube tutorial on a fighting game. Facing an error:
Var <unknown_object>.sprite_index not set.
The error was here:
if (sprite_index != sprKill_foward)
{
sprite_index = ...
0
votes
1
answer
64
views
mouse click on sprite image rather than on its bounding box
In all the examples of games, which I examined, written in C++/C# using SFML, .NET Framework, WPF, Python and HTML5 a sprite reacts on mouseClick made within the sprite's bounding box.
Is there a ...
0
votes
1
answer
59
views
Get Direction a Sprite Appears to Be Facing Relative to the Camera
Let's say I have a camera (player since I am making a game) at 0, 0 facing at -0.78 radians. I also have an entity or npc at -2, 2 facing at 0.78 radians. Because we are humans and we have brains, ...
0
votes
1
answer
38
views
Pygame surfaces being unintentionally shared between objects
Working with this code in two separate files :
import pygame
# These are used to figure out where this top-level module is being run
# so that the path can be passed to submodules
from inspect ...
0
votes
1
answer
69
views
Unable to get contour when bounding boxes are not overlapping
I have some sprite sheets. In some cases, the bounding boxes of the sprites are overlapping, even though the sprites themselves are not overlapping:
In other cases, the bounding boxes are not ...
1
vote
3
answers
391
views
Should a sprite file be reloaded for each individual sprite?
I have 1324 different small SVG images, all the same basic size, that I need to load as background images for 1324 different cells in a grid display. The cells into which they load have varying ...
-3
votes
1
answer
239
views
How to detect and crop individual sprites when their bounding boxes overlap? [closed]
Please refer to this link first:
How to automatically detect and crop individual sprite bounds in sprite sheet?
In the example in the above link, the bounding boxes of the individual sprites do not ...
-1
votes
1
answer
38
views
Collision not working with different sprites? [duplicate]
I followed a tutorial for a simple runner game using pygame and got it to work. So I went to try it again with my own characters and obstacles that I made. But for some reason, the sprites seem to ...
0
votes
2
answers
139
views
Unity 2D - Showing health on the sprite as red when the health is dropping
I am trying to make the enemy/player become red temporarily after taking damage.
I was thinking as one of them takes damage, a red effect moves up on either player/enemy to show how much health is ...
1
vote
1
answer
257
views
Phaser 3: Rotate a sprite and automatically rotate all subsequent sprites
I have a series of horizontally-lined sprites in Phaser 3:
const sprite1 = this.add.sprite(20, 40, 'diamonds');
const sprite2 = this.add.sprite(50, 40, 'diamonds');
const sprite3 = this.add.sprite(80, ...