Which software is required to create android sprites? - android

I am completely new to android game programming. I really dont have any idea how can we create animated sprites. I have seen this guy using that amazing application RUBE to create a game character http://www.youtube.com/watch?v=bBIXpu-D_Zo can we do that stuff in android too ?
Even if we can how can we load such massing character to our andorid project. I accept i am noob at this but i have great interest in game development, please help me with detailed answer.
Thanks in advance

What you'll need is a sprite sheet. A series of images on the same bitmap laid out in a grid. For example you would have 8 different sprites of the same character, 1 standing still., 1 left foot forward, 1 right foot forward and jumping and again facing the opposite direction.
When you draw the sprite set the coordinates to be drawn and on button presses change the variables controlling the coordinates.
A good tutorial is here http://warriormill.com/2009/10/adroid-game-development-part-1-gameloop-sprites/
and a sprite sheet maker can be found here http://www.codeandweb.com/sprite-sheet-maker
Hope this helps!

Related

App Inventor 2 - How to make a sprite walk to the position of touch?

I want the sprite to walk towards the position of touch. To be more precise I want it to move like the main sumo in this game: https://youtu.be/Gj5CwgFUbI0?t=56s
The buttons provide pixel by pixel movement but I've to keep pressing them again and again to reach a point.
The Canvas event directly puts the sprite to the position touched.
This was answered by Ghica on Mit App Inventor forum and I just made a few edits. I used blank png 10*10 pixel as a Target Sprite.
.aia file
The logic should be like this, but i can't make it works, it's always freeze when the button touched.
My guess is because MIT App inventor doesn't support multi threading. Sorry that was as far as i can help.

Detect eye ball

I am developing an app which will change the color of your eye. I need some help about detecting eye ball. Currently i have a selector that will be used to reduce ROI. It look like
this
So who we can detect eye ball from that selected region. I was thinking about changing the image to grayscale and then detect big black spot from that and then change color of it which will be the next step. i'll really appreciate any help.
Your way of thinking about a returning pattern is a good start. I am doing some work on a pattern recognition chair as well, so here is some help for your task:
using a grayscale is a good start btw ;)
There are some "facts" that are always applicable to a non pathologic eye:
the center is dark
left and right side surrounding dark ball are almost white (depends on how open the eye is)
do not forget: you have 2 eyes. link them together in some way (usually they are on an approximately horizontal line)
there is usually motion in the eyes while the other regions of the picture are relatively calm
Of course I cannot provide any code here, this would blast this whole post, but I hope I could help you in some way.
I found some link these guys detecting pupil of the eye. May b this will help you . See here and here
you could use the template matching method from open cv. template matching
this will help you find the eye in most of the cases.
Another solution would be to convert your image into an edge image with e.g. canny edge detector from opencv. and then search for this pattern with the template matcher. Using the edges makes you independent of the color. Using grayscale images will also facilitate the procedure.

Fluid snake animation using images

I want create a snake game in Android using AndEngine. But in my game, the snake won't be controlled by the player. It'll just move in random directions.
I have a snake that can move in random directions. My problem is that I want real-time animation (i.e. the snake shouldn't just move after a delay).
I tried using register modifiers to move the snake, and that works. But the problem is that I have images for each snake's tail element.
If I had just rectangles, I would know how do this, but I'm using more advenced images.
When the snake changes direction, I should have an element connecting different directions (example: right and down).
Is there any algorithm for this? Alternatively, where I can find an open source project that explains this?
It's the same with rectangles. Ideally you wouldn't delete the images for the time of the animation.

attach a child sprite to animated sprite andengine

I am trying to learn game programming using AndEngine. I have created animated sprites that are spawned on different intervals. I would like them to shoot objects at my player. I have searched trying to learn how others have done this, and tried the code that i thought would get me started, but have been unsucessful. Can someone pleae point me in the right direction to accomplish attaching a child sprite and having it shoot at different intervals in AndEngine.
thanks in advance!
You don't need to attach bullets as child, here is the very good tutorial and it's shooting bullets :), You're in luck!

animation with sprite 2D android

I am building a virtual store with the effect same like this
enter link description here
The user can freely rotate the image from left to right and top to bottom or vice versa. I suppose to use sprite 2D to implement that animation. There are some tutorials I found but because Im pretty new about graphic programming so could anyone point me to the correct way that approach my expected performance. Thanks a lot.
The easiest way is to use the Canvas API in Android. Here is an example of how to use it with sprites.

Categories

Resources