okay so ive made a for loopbut why is it changing other sprites
you most likley need a code so
#include "player.h"
#include <vector>
#include <iostream>
using namespace std;
void DarkGDK ( void )
{
dbSyncOn ( );
dbSyncRate ( 60 );
dbSetImageColorKey(255, 0, 255);
dbLoadImage("sprite.bmp",1);
dbLoadImage("Arrow.bmp",2);
dbLoadImage("Backdrop.bmp",3);
dbSprite(1,0,0,1);//collision
dbSprite(2,0,0,1);//visual
dbHideSprite(1);
dbSizeSprite(1,dbSpriteWidth(2)-2,dbSpriteHeight(2)-2);//give a one pixel margin
dbSprite(3,0,200,1);//////////////////
dbSprite(4,560,dbRnd(550),2);
*/int blocks=5;
vector<int> bricks (5);
for (int i = 0; i < blocks; i++)
{
dbSprite(i,100,100,2);
dbMoveSprite(i,-1);
}
while ( LoopGDK ( ) )
{
dbRotateSprite(4,90);
dbMoveSprite(4,-2);
dbRotateSprite(4,0);
jump();
leftright();
dbSprite(2,x-1,y-1,1);//sync the images
if ( dbEscapeKey ( ) )
break;
dbSync ( );
}
return;
}
this is changing every sprite except for the player how can i change this