Shooting a gun

You are displaying a still image, I don’t think Corona supports gifs in images. If you go online you could find software that splits gifs into sprites. 

I’m using piskel and it’s hard as hell

I have a sprite sheet now but I don’t know what to do 

you could try reading the docs?  there are also sample apps that show how to use sprites.

It’s all here. :slight_smile:

https://docs.coronalabs.com/guide/media/spriteAnimation/index.html

I have literally tried the docs more than ten times and nothing ever changed . The sprite I have when I try to use it on the app, it just shows the whole sprite in the form of a picture and not the zombie walking 

Please zip up the project and share it here.  I’m sure a quick look by an expert in the forums can help work out your sprite problem.

Alternately, using your sprite PNG and LUA file, just make a small project with main.lua and some code trying to use the sprite to display and animate it.  Then zip that up and share it here.  Again, folks can then look at it and help work out the issues.

PS - What tool are you using to make your sprite sheet/lua file?  

  • Texture Packer?
  • ShoeBox?
  • Other?

PPS - GIF is not a supported format.

What do you mean by nothing ever changed?

Please go through the docs, follow the steps they provide, and if anything goes sour, just post your code here, so we can  help  you figure it out.

I just tried this code 

local sheetOptions = { width = 512, height = 256, numFrames = 12 } local sheet\_movingZombie = graphics.newImageSheet( "zombiesheet.jpg", sheetOptions ) -- sequences table local sequences\_movingZombie = { -- consecutive frames sequence { name = "normalRun", start = 1, count = 12, time = 900, loopCount = 0, loopDirection = "forward" } }

And I got this error :

bad argument #2 to 'newImageSheet' (for single frame size, 'options' table must contain valid 'width' and 'height' values)

Is my sheet not the right size ?

What is the size of your image sheet? If it is 512 by 256, the width and height is for each individual frame, not the whole thing.

This is the sprite sheet 

The dimensions are 1356 x 104.

I have an image does anyone know how I can make it face the left side ?

I want that image to face left like the zombie in the sprite sheet 

Quick notes:

  1. You’re going to need to use a PNG not JPG.  JPG does not support transparency so you’ll have the zombie image and the black border.

  2. Also, those images look wrong somehow.  Were they extracted from a GIF?  What is the source of this image?

  3. What you really want to do is:

a. Start with discrete PNG images.

b. Use texture packer, shoebox, or another asset packing program.

c. Generate a sprite sheet and lua file (or other format describing sheet)

d. Use the generated sprite sheet and data source to render the sprite.

This will still require you to write your own sequence data table to describe the animations.

You want to turn that so it is shown in profile?  That is not possible.  It is a 2d image an has no 3d data embedded in it.

That image is from the Kenney 1 Pack (Zombie->Poses).

You should look at the Kenney 1 Voxel pack instead (same package of assets).  It has some side-profile parts you could assemble.

Reiner has some art that might work for you, but it is going to need some work to use.

http://www.reinerstilesets.de/

Red and Green Zombies -> Toward bottom of this page: http://www.reinerstilesets.de/2d-grafiken/2d-monsters/

Do I assemble them in the game itself or somewhere else ?

Here are some other places to hunt for artwork:

https://opengameart.org/art-search?keys=zombie

https://marketplace.coronalabs.com/asset/2d-zombie-horde

https://marketplace.coronalabs.com/asset/zombie-family-game-sprites

Hey.  This is a little off-topic, but what kind of game are you making?  Is is a side-view zombie shooter? 

Are there any similar games you’re modelling yours after and if so what?  

I’m asking, because knowing this might help me with giving better answers.

Yeah it’s a side view 2d zombie shooter game .