25 Topics

Member Avatar for
Member Avatar for rouse

Anyone familiar with Compass to help solve a problem with sprites loading. The markup in the compile CSS points to the wrong address for the loading of the sprites. Here is the generated CSS /* ===================================================== */ /* Sprites /* ===================================================== */ .spr-sprite, header h1 { background-image: url('/images/spr-sf52e1e883c.png'); background-repeat: no-repeat; …

Member Avatar for rouse
0
180
Member Avatar for vegaseat

A very basic pygame sprite example. Moving a sprite with the arrow keys, could be the start of a great space game.

0
6K
Member Avatar for Xecantur

Having a hard time trying to wrap my head around why my grid system fails, I'm assuming my train of thought is stuck at the moment(akin to writers block). My understanding of grids is while the current cell isn't the last one in the column/row(w/e is horizontal) /*do stuff*/ then …

Member Avatar for Xecantur
0
324
Member Avatar for CJMW

So i'm making an rpg game with c# and xna. How can I create a simple camera that follows the player as they move? I only wish for the camera to move as the player reaches the middle of the screen. I dont require it to rotate, zoom in/out like …

Member Avatar for KushMishra
1
332
Member Avatar for sceptical

Hi :-) Smiley - face at the start there, but this is really irritating for me. As you see from the title, THE POSITIONING OF THE ELEMENTS IN IE 6,7 AND 8(At least) is off. I'm including the direct url : http://evolvedtools.com/Genr8Mobi.html. Now this page is normally a redirect from …

0
158
Member Avatar for nikk8a

Hi, I am trying to use an image sprite for icon in my button. Following is my css class for the same. The problem I am facing is that it seems to be pulling even the neighbouring image (which might be due to bigger text on the button) Is there …

Member Avatar for nikk8a
0
196
Member Avatar for cgull

Hello, I need help with a menu I'm creating with a sprite image. I don't know why, but on hover it moves up what looks like 1 pixel. I have created a jsfiddle for it here: [Click Here](http://jsfiddle.net/Cgull/HrmH8/) Also, first time I am creating a jsfiddle so hope it's ok. …

Member Avatar for Troy III
0
189
Member Avatar for Dum_Bass

I am trying to create a simple scoring function using sprite collision. I have my sprite ids defined under a seperate header and my class is in order. LEFT_SCORE is animated using a sprite sheet (obviously). int Ball::leftGoal( ) { int leftScore = 1; if (dbSpriteCollision (BALL, 12)) {++leftScore;} dbSetSpriteFrame …

Member Avatar for Dum_Bass
0
163
Member Avatar for MiniApocalypse

Hiya! I got rotating bitmaps working in my game using al_draw_rotated_bitmap(); Then i put animations in using al_draw_bitmap_region(); Ive found that i can either do one or the other. But i want it to animate and rotate. After looking at the allegro source to see what other functions are available …

Member Avatar for mrnutty
0
191
Member Avatar for blackarchan

I have a problem i wrote a code and copyed some code but now my sprite dosent move anymore....and i dont know why # Import a library functions called 'pygame' import pygame from pygame.locals import * # Initialize the game engine pygame.init() # Define some colors black = (0, 0, …

0
145
Member Avatar for NeoSyn

Recently i've been coding my own game, it was working fine up to a point but suddenly the backround is moving over the sprites drawn to the screen... I've loaded them unto the screen alright, and sometimes when i run they actually do come out on top. Here's my main: …

Member Avatar for vegaseat
0
457
Member Avatar for vaucro

I've created a game , somewhat like space invaders, and it looks pretty cool , very proud of what ive done. But I'm stuck on finding a way of unit testing the collision of 2 sprites and the collision between the borders and a sprite. If anyone could point me …

Member Avatar for vaucro
0
230
Member Avatar for Rickay

[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to …

0
123
Member Avatar for Rickay

[CODE]int realX = winSize.width + (projectile.contentSize.width/2); float ratio = (float) offY / (float) offX; int realY = (realX * ratio) + projectile.position.y; CGPoint realDest = ccp(realX, realY); [_projectiles addObject:projectile]; projectile.tag = 2; [projectile runAction:[CCSequence actions: [CCMoveTo actionWithDuration:realMoveDuration position:realDest], [CCCallFuncN actionWithTarget:self selector:@selector(spriteMoveFinished:)], nil]];[/CODE] In this simple app, I am trying to …

0
123
Member Avatar for DOT6

Hello, I am creating a card game and need some advice/pointers or code snipets if possible on sprite movement in the sence I need to create an action of a card been drawn from the deck. Basicly I need to make the sprite(card) move from the deck posion(x,y) to the …

Member Avatar for DOT6
0
260
Member Avatar for CPT

So it's this program which isn't behaving as it should. these are the classes I'm haing problems with: [code]#ifndef _CMENU_H_ #define _CMENU_H_ #include "Vec2.h" #include "Background.h" #include "Sprite.h" #include "BackBuffer.h" class Button { public: enum ButtonState { NORMAL, //when cursor is not near the button ANIMATED //mouseover event }; Button(const …

Member Avatar for m4ster_r0shi
0
156
Member Avatar for HelloPeople1

Hi We are high school students working on a final project for our course. We are making a top down shooter type game using pygame (its kind of like boxhead), and have made made all of our game except for the ai. We really need some help with this, so …

Member Avatar for raptr_dflo
0
312
Member Avatar for HelloPeople1

Hi guys I'm writing a top down shooter game in pygame and wanted to use sprites for my object. I got a character sprite working fairly well except I have two problems. 1. When I rotate my character the point of rotation is changing. This causes a uneven rotation in …

0
102
Member Avatar for jonow

I just took almost all the graphics on my website that are used often in the design and put them into a CSS sprite. Because of the varying sizes this created large area of the new image file that had nothing in them. The result of this was a new …

0
148
Member Avatar for Dan08

Hi everyone. Well I've been trying to figure this out for a quite a long time now by looking at some examples and searching the web, reading some tutorials and so on, but I don't even know where to start yet. Can you explain to me about the sprites too …

Member Avatar for TrustyTony
0
3K
Member Avatar for benny2010

Hello does anybody know how to scale a sprite or image to fit the whole render window? at the moment i have my checkers board but its in one corner of the window and i want it to fit the window entirely would be a great help :)

Member Avatar for myk45
0
185
Member Avatar for batchprogram

I recently made a switch to SDL as a cross platform alternative to directly accessing DirectX or OpenGL. In an attempt to port a section of my game framework, I encounter logic errors that (to me) make absolutely no sense. In this snippet, a sprite is simply a wrapper class …

Member Avatar for venomxxl
0
204
Member Avatar for jbhorne

I'm having a problem with a navigation map that uses javascript and CSS to shift a sprite. The sprite image is located at [url]www.eagleonedims.com/images/navmap.jpg[/url]. On each <li> rollover, I need the ENTIRE sprite shifted by 88px to account for the overlapping effect. The page in question is located at [url]www.eagleonedims.com/index2.php[/url]. …

Member Avatar for jbhorne
0
172
Member Avatar for epicasian

Hello Daniweb, I am writing a game engine in C++ with SDL, and am faced with a problem. I need to store the sprite animation coordinates for every different animation in a different array. The problem I am facing is, since I am putting the arrays in one single Player …

Member Avatar for mrnutty
0
133
Member Avatar for blueness25

Hello, I know this is a very simple problem, but I am about to give up... Why couldn't I get the control keys do their job? Maybe someone whose eyes are more rested than mine can tell me. I will appreciate any help. I am dealing with pygame, and I …

Member Avatar for blueness25
0
789

The End.