490 questions with no answers
1
vote
0
answers
69
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
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 ...
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
0
answers
175
views
Best way of spriting icons
I'm creating an application from scratch using angular2, SCSS and gulp.
I want to create high quality and responsive icons. Exploring the web I found the that there are 2 main techniques:
image ...
1
vote
0
answers
79
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
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 ...
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
0
answers
126
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
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
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
0
answers
216
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
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
0
answers
325
views
Collision Detection on C++ using sprites and setObject
I am trying to create a very basic endless runner gamer and i am stuck with collision detection's. I am programming for a GBA emulator using notepad++. The code below is my main game while loop. The ...
1
vote
0
answers
174
views
GODOT 4 cuts off pixel in pixelart
I converted a project from godot 3.5 to godot 4.2.1 and changed texture import from linear to nearest, so it is pixel art. In the editor it works fine, but for some reason, it is doing some weird ...
0
votes
0
answers
727
views
Achieving Pixel-Perfect Display in Unity 2D Game with 32x32 Pixel Art Animations
I am relatively new to game development and currently working on a 2D project in Unity using C# with pixel art animations (32x32px sprites). Despite setting up the project with specific configurations,...
1
vote
0
answers
98
views
Correct screen positioning of a sprite in a pseudo 3D environment
I am currently working on a small project in PICO-8 (that's why the code is in Lua and I am rendering to a 128x128 screen), where I tried re-creating a pseudo-3D environment similar to the Mode-7 ...
0
votes
0
answers
83
views
Sprite sheet in Unity2D URP compressing too much?
Im using URP on unity2d. I managed to set up a good color swap thing for one of my sprites. So I can change all of the colors individually to anything I want.
But I need animations on this sprite and ...
1
vote
0
answers
46
views
why won't this draw on the mapcanvas
I have no idea this this.canvas.getContext("2d").drawImage in the map function will not draw, It seems to be creating the canvas but just on drawing on it, it also does log all the numbers ...
1
vote
0
answers
162
views
How to use svg sprite in react?
Hello I search many questions in stackoverflow about this issue but nothing help me.
I have svg srite
<svg width="25" height="25" >
<symbol xmlns="http://www.w3.org/...
1
vote
0
answers
270
views
How to Use Sprites in InstancedMesh with Three.js and React Three Fiber in React?
I'm currently working on a NextJS proyect with React Three Fiber where I've created a Galaxy component that generates a starry background using instanced spheres. However, I'm trying to replace these ...
1
vote
0
answers
928
views
SpriteKit Gradient
I'm trying to create a background for my game with a gradient, directly into SpriteKit. I've tried several things but nothing works and I haven't found any helping advice. The first thing: I'm ...
0
votes
0
answers
249
views
Website renders differently on Safari than Chrome
I am working to add on to an open source project that makes a pac man game in html, css, and js. The website renders properly on Chrome but does not work on Safari. Both work properly on screens with ...
0
votes
0
answers
125
views
Creating an algorithm to convert a pixel sprite into a rectilinear polygon
I am attempting to write an algorithm that would convert any pixel sprite to a set of vertices that compose a rectilinear polygon. My algorithm worked fine for sprites that have been scaled up. When I ...
0
votes
0
answers
42
views
Are there any cohesive code samples for Peter Lager's Sprites 2.1.1 library for Processing?
I'm not an experienced programmer, and I'm having trouble piecing together the official reference documentation.
Does anyone have a sample (or know where to find samples) of this library in action?
I'...
0
votes
0
answers
25
views
(Godot) Sprite bounces off Tiles after Walking (Bug?)
My Sprite always jumps a little when walking a straight distance. No hitbox is overlapping and I use move and slide with snap
0
votes
0
answers
270
views
draw sprites to surface? ( I want to create a surface layer for shadows )
Im coming from game maker studio background and the engine would let you draw sprites onto surfaces. A way to achieve shadows was to add a script to instances that required shadows. the script would ...
0
votes
0
answers
43
views
How do I draw my sprite using strictly public Character and a function
So I have to make Boulder Dash from C64 with C# as a project for school but I'm stuck at the place where I have to draw Rockford(the character). My english is pretty poor for what I want to explain ...
0
votes
0
answers
219
views
Addressable related confusion at runtime (for Unity games)?
Respected Seniors,
I need proper guidance for Addressable, please.
If someone wants to share his or her experiences, I would be very thankful for it. I am not able to understand after watching so many ...
0
votes
0
answers
2k
views
(Godot) how to create a 2d shadow with a sprite + blending mode?
I have a node 2d for my player object. It has a sprite child with the player sprite.
I want to redraw the same sprite but black + with some blending mode so that it affects the background.
Below is an ...
0
votes
0
answers
85
views
It is impossible to implement accurate collisions in 3D SpriteRenderers? Is Billboard incompatible with rigidbodies?
I've been having difficulty implementing enemies with a billboarding system for a while:
For a new project I'm reusing some animated sprites from an old static camera shooter game I made. It consisted ...
2
votes
0
answers
42
views
How to scale sprite and use it later [like saving as png]
I'm making a small program that using JSON file slices texture and combine slices into one sprite. Slicing works great but combining is hard. The problem is that some sprites are scaled. The only way ...
0
votes
0
answers
27
views
How would I go about setting up this image sprite?
I am trying to set up an image sprite.
Using 2 image urls works: https://jsfiddle.net/xy0gsocf/1/
There should be a way to do this since I am able to with 2 image urls.
.panel-left {
left: 0;
...
0
votes
0
answers
428
views
How to correctly specify the path to the SVG Sprite?
I made the sprite, everything works well on the Gulp assembly. But if you open the index.html file through the build folder, the icons do not show. I think the problem is along the way. If you look ...
1
vote
0
answers
73
views
Buttons with different size images from sprite as background, images not placed correctly
I create some buttons, with images from a sprite to be used as the background for them. Each button is contained within its own <figure>. When the button is selected, the full size image from ...
0
votes
0
answers
119
views
bytearray(b"\xd0xPx\xf0") meaning
I'm looking through someone's code that makes simple sprite for a space invader game. They use the following bytearray:
bytearray(b"\xd0xPx\xf0")
What is the xPx? With it, you get something ...
0
votes
0
answers
66
views
Is it possible this unity?
I hope this question is fine here, I kindly would like to know if what I'm thinking is possible in Unity before to get start digging to it. I'm not familiar with unity I always use SpriteKit and ...
0
votes
0
answers
266
views
C# Palette Pixel Change By Coords
I have a bitmap palette where i can easily change a single color for the whole palette or all of them by inverting them all for example:
for (int i = 0; i < sprite.Palette.Length; i++)
{
int r =...
1
vote
0
answers
2k
views
How to change scale of Sprite in PixiJS without loosing on resolution?
When I set scale of my Sprite to 0.1 I loose on its texture resolution.
export const createSprite = (textureName , position = {x:0,y:0},scale ={x: 0.5 , y:0.5} , anchor = {x:0.5 , y:0.5} ) => {
...
0
votes
0
answers
540
views
Shader issues with Pyglet
So. I have been using Pyglet for up to a week at this point and have been making a Rhythm Game. I decided to test some shaders using the ShaderPy library for pyglet. The shader applies and works, but ...
0
votes
0
answers
107
views
Sprite use png map . But it doesn't display properly when scene contains Bloom. What shound i do?
I loaded a Sprite in a scene with Bloom, the trouble is that my Sprite map is using an externally loaded Png texture. Not the usual solid color material. I know it's possible to make all the textures ...
0
votes
0
answers
393
views
How do I make a sprite chase another sprite in javascript?
Im making a game where I need the enemy to spot the player once in a certain range, and then start chasing the player. I cant find anything anywhere at all that would help with how to make sprites ...
1
vote
0
answers
17
views
How to get rid of a sprite but so I can add it again later
I need to make it so the rocket flies which I want to achive by killing the sprite subtracting a y cordinate and drawing the sprite and doing that over and over again so this way I get an illusion of ...
2
votes
0
answers
111
views
How can I make this sprite cull at the nearest wall?
Im working on a build-engine style unity game, and something regarding my explosion sprites has really been bugging me. My map is split into several pieces for both occlusion culling and my method for ...
0
votes
0
answers
66
views
How to make the Form 2 and three animate while the buttons are on form 1
I want my form 2 and 3 to animate while the buttons are on form 1 and when it goes to form 2 it doesn't stop it continues animating.
FORM 1 CODE:
Public Class Form1
Private runSequence() As Image
...
0
votes
0
answers
43
views
Merge multiple images dynamicallly with PHP
I want to merge several image from a folder, into one image.
I've managed to do it with two images, but I don't like this method, because what if my folder has over 10 pictures?
$image1 = ...