Questions tagged [sprites]

A 2D rendering of an object in space.

Filter by
Sorted by
Tagged with
1
vote
1answer
315 views

Why is the alpha value of a Sprite in LibGdx 0.99607843 and not 1?

I'm developing a game in LibGDX and one of my problems is related to the alpha value of a Sprite object. If I create a new Sprite sprite object then ...
0
votes
1answer
302 views

How to split sprites into multiple pieces, like in image below

Or how it should be called? I will change color programmatically. Sorry for my English.
0
votes
1answer
528 views

Sprite/Object/Room limits in GameMaker 8.1?

I know about GameMaker Studio’s limitations for sprites, objects, rooms, and other assets (https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations), but I can’t ...
2
votes
1answer
280 views

re-using objects

I'm working with openGL ES 2.0 on Android and I've created a custom Quad class. This allows me to make a sprite object like so: ...
4
votes
3answers
2k views

Player sprite animation in 2D platform game

It's pretty easy to get animations rolling from a sprite sheet. Though which ways there are on combining the animations with player dynamics and motion? I've figured there's two starting points ...
3
votes
1answer
172 views

Render moveable entities into 3D isometric world?

I have a separate list of moveable entities, and then the regular 3D map, represented by a 2D array of stacks of tiles. My problem is that right now, I'm rendering my moveable entities after the map, ...
1
vote
2answers
878 views

Using sprites in pygame without classes and objects

Relevant information I'm in a grade 11 computer science class that uses Python & Pygame. We're aloud to use sprites and images though we're never taught it, just drawing graphics like squares and ...
1
vote
1answer
195 views

Why are my sprite outlines partially rendering in the wrong place?

I've been trying to draw an outline around a sprite using the code from this answer. Details My sprite is called Ship2Sprite. This is how I create the rectangle: ...
7
votes
2answers
974 views

Algorithm to reduce a bitmap mask to a list of rectangles?

Before I go spend an afternoon writing this myself, I thought I'd ask if there was an implementation already available --even just as a reference. The first image is an example of a bitmap mask that I ...
1
vote
1answer
2k views

Unity tilemap spacing between imported sprites

What am I missing here? Is Unity's tilemap limited to size 32x32? I am trying to understand why my sprites in my Unity tilemap are spaced apart from one another such that if I paint them into the ...
0
votes
1answer
49 views

Multiple image objects extracted from spritesheets or one-two object for all?

Let's say I want to make a 2D game and I'll use a spritesheet containing all of the animation frames and a texture-atlas for static sprites such as walls, non-animated decorations...etc. Should I ...
1
vote
1answer
402 views

Efficient way to draw multiple separated quads

Let's assume I want to draw several separated (possibly textured) quads in Direct3D 9, each consisting of two triangles: How should I draw these for maximum performance, i.e. which of the following ...
1
vote
1answer
360 views

Drawing Sprites with Artemis

I am trying to trace the StarWarrior code (the Artemis tutorial). I cannot figure out how these sprites are being drawn. This is the code where the player's ship ...
2
votes
1answer
1k views

Screen blending from Photoshop in Unity 2D

I want to use "Screen blending" from Photoshop in my Unity 2D game, I want to use that for exported lights from 3D Max that we want to use in our game, Now for a sample, I have my sprite that I want ...
11
votes
1answer
4k views

Confusion about Sprite Size in World Space (Unity)

I have a Sprite with 1080x1920 resolution. And I set the Game View Resolution also to 1080x1920. What I was thinking is that the sprite (1080x1920) should fit correctly within the Camera View. But ...
0
votes
1answer
205 views

Does destroying body also destroys the sprite?

Suppose a sprite is attached to a box2d body. And world.destroyBody(b); is getting called then the sprite also get destroyed or it stays there in memory. In my ...
3
votes
4answers
2k views

How to set speed of circular motion

Edit 2 - clarification Just to clarify, the issue I have at the moment is how I specify a time (in seconds) for a complete revolution to occur. My delta is fixed and is 1/ticks per second (1/60). ...
0
votes
1answer
486 views

Revolve FlxSprites Around a Central FlxSprite in Flash Game made with Flixel

I have been working on a Flash game made in Flash Builder using the Flixel library. I have been trying to dynamically create a group of FlxSprites , and revolve them around a player controlled class ...
5
votes
1answer
154 views

Is there is a way to mask sprites in Spriter?

I am very new to Spriter. I want a sprite to be only displayed when it is above particular sprite. How can achieve this?
3
votes
2answers
593 views

What are the benefits or drawbacks of splitting the player animation system from the wall collision system into multiple objects pinned to each other?

I'm currently making a simple platformer in GameMaker Studio 2 and I've had people telling me that I need to separate the two things into an invisible wall collider mover and animation sprites pinned ...
1
vote
1answer
123 views

Can't Get .enabled to Work for Children Sprites. What Gives?

So I have an object with a few children. I want to be able to disable/enable 2 of their SpriteRenderers via one of my scripts. I feel like I'm doing things right, but apparently I'm not. And yes, my ...
1
vote
2answers
1k views

How to make an object with its own sprite draw an additional sprite on top of itself

I'm making character select buttons for a Game Maker Studio 2 game, hoping to do so by just having a single object I can edit on an individual basis to change which character it represents. I also ...
1
vote
4answers
2k views

What's a proper way to change colors of a sprite on the fly in libGDX?

I have found a great tutorial series on creating a simple 2D side scroller, Super Mario Brothers, in this case, and I believe I can adapt it fairly well to create a Megaman clone(something I am quite ...
-1
votes
2answers
7k views

Changing a Sprite When Hit in GameMaker

I am making a simple little Galaga style game. I want the objects sprite to change whenever it is hit. For example if a laser hits an alien then the sprite takes 1 out of 4 damage to its health ...
0
votes
1answer
821 views

Need help understanding ms to fps for a Unity animation

I'm trying to create an animation in Unity (2018.1.1f1) and can't understand how to proceed. I have a 3 sprites which I need to order like so : 1 2 3 2 (then repeat). The first and third sprites ...
0
votes
2answers
759 views

Loading sprite resources from nested folders

This is how I try to load my sprite images: ...
1
vote
1answer
313 views

Sorting sprites based on Z index

I am working on a 2D game engine in C# using OpenGL. I am trying to find a collection to satisfy my needs for sprite ordering, and I can't seem to find the combination of performance and functionality....
1
vote
2answers
919 views

Separate objects for hitbox and sprite?

I am making a technically top down game with a shifted perspective. It shows more of the characters side, not just above their head. I think most "top down" games have a similar art style. Due to ...
0
votes
0answers
218 views

Optimal way to create/spawn multiple sprites in mini2dx(subset of libgdx)

What is optimal way to spawn new sprites with different sizes in mini2dx(subset of libgdx)? Currently I am maintaining ArrayList of enemy sprites ...
1
vote
1answer
33 views

How can I have more values in array on X axis than Y axis in my tilemap?

Following my old question Array of map data renders the map the opposite way after I got the answer to it and fixed my problem, I got another problem that occurs. If my ...
2
votes
1answer
445 views

How could I implement destruction of bases in Space Invaders type game?

What approaches could you use to implement the the gradual destructions of bases/shields in a top down shooter type game similar to Space Invaders? The simplest approach could be to use a series of ...
-1
votes
1answer
676 views

How to handle pathfinding and path following with sprites the same size as the grid?

The game I am working on is currently using 32X32 collision boxes. I have implemented a working AI (A* - path finding method) which is based on the Grid Size. Lets say that I use that 16x16 grid , ...
2
votes
3answers
6k views

Polygons vs sprites rendering performance in Unity for windows phone 8

I'm currently building a windows phone 8 game with unity, having 111 (no more no less) sprites being updated each frames. I have a strong overhead in the profiler (70% to 90% minimum) I tried the ...
0
votes
1answer
2k views

what is the script that is needed to move a 2D sprite(square)?

I am trying to find a script for my square sprite to move so the player can use WD to move but every time the script won't run. That script is one of many that won't work. This is what I have so far: ...
0
votes
1answer
489 views

SpriteRenderer batching issue, with Z-Position and Order in Layer

I have two sprites (they look the same but with different colors): I want them to be positioned like on the image above, so there's a feel like blue is standing on the green one. There are two ways ...
3
votes
1answer
284 views

Polygons and actionlisteners Libgdx

I've been browsing these forums for a while now and I nearly always am able to find an answer without having to ask my own question! Such a great community! This is the first time I've been stumped ...
2
votes
2answers
836 views

HTML canvas how to create big game world and show only a part of it on canvas?

I originally created this question at stackoverflow but got no answers, so hopefully someone will be able to help me here. So for the first time ever I'm making a html canvas game. So far I came up ...
0
votes
1answer
63 views

DOM for GUI - display animated objects

I'm creating an HTML5 game using Canvas, but want to use DOM for the GUI for the reasons mentioned in there articles: http://blog.sklambert.com/html5-game-tutorial-game-ui-canvas-vs-dom/ http://www....
0
votes
0answers
261 views

LibGdx- Sprites moving alongside camera

I am trying to render some entities in random positions on the screen. The spawning positions are okay however when I move the player entity (which the camera is focused on) and pass the middle of the ...
0
votes
1answer
23 views

My sprite is not listening to any keyboard keys

First time ever creating html canvas game. Once I finally got my sprite ant tiles drawn on the canvas, now I want to make my sprite interactive. Unfortunately, for some reason it is not working. I get ...
1
vote
1answer
764 views

Why is creating my sprites so slow?

My 2D Unity game has tiles and layers. It creates one game object per tile, anywhere from 100 to 10,000. To create 3,000 game objects takes 68 msec, which is just fine. But setting up the sprite and ...
1
vote
2answers
283 views

What is the purpose for drawing vertices and shapes in OpenGL (or DX), if a game is using sprites?

Something I do not understand. All the tutorials on OpenGL, DirectX, or other, always show you how to draw a shape and then change its vertices, move it around and so on. But all the games I know of,...
2
votes
2answers
599 views

Finding SpriteRenderer of specific Child Gameobject

So i'm trying to work on my Equipment System to also change the appearance of the sprites on my Character once i change the equipped item. My animations are setup in limbs so all i would have to do (i ...
2
votes
1answer
319 views

Efficient method to export a lot of pre-rendered sprites from 3D models

I have a lot of 3D Characters and I wish to use them in a 2.5D game as Sprites; in doing this I have to render them from a fixed camera angle and since each should have its own atlas file containing ...
-2
votes
1answer
2k views

RenderTexture.Create failed in Unity. please help me

RenderTexture.Create failed: width & height must be larger than 0 UnityEngine.RenderTexture:Create() Prime31.SpriteLightKit:updateTexture(Boolean) (at Assets/SpriteLightKit/SpriteLightKit-master/...
0
votes
1answer
148 views

How to prevent images from being resized in game maker?

This warning appeared in the compilation menu of my game. The images were rescaled in half. I understand that this happened because they had very large dimensions. It turns out that the images, ...
0
votes
1answer
111 views

Instantiate a sprite using json data value (C# Unity)

Here is my code : BetBoard_Test.cs ...
-1
votes
1answer
491 views
0
votes
2answers
394 views

How to access sprite sheet via row and column

I'm currently designing a 2D game engine in C#, just had a quick question. I have a SpriteSheet class that splits up a sprite into several different sprites (like ...
1
vote
1answer
1k views

Would it be good idea to use blender to create sprite and animating rather than using a 2d software to create sprites and animating them in 2d

I'm making this 2d side scroller game. I had been working on 3d games(modelling and animation) for 2 years, thus my experience with 2d sprites is none to zero. So I've been struggling with asset ...

1
3 4
5
6 7
21