help???
Posted: Mon Jun 20, 2011 11:55 pm
Does anyone know how to change the speed of an animation?
animpos=(int)(animpos+1)%nframes;
timer++;
if(timer==2)
{
animpos=(int)(animpos+1)%nframes;
timer=0;
}
timer+=anim_fps;
if(timer>=30)
{
animpos=(int)(animpos+1)%nframes;
timer=0;
}
if(animpos==3)
{
if(sotr==0)
{
playsound();
sotr=1;
}
}
else sotr=0;
remapKey(fromKey, toKey);
// so for example
remapKey(KEY_a, KEY_b);
// will map a to b
1. You can use view.width and view.height. Technically it isn't global but since there is only one view it essentially is.
2. You'd have to use fopen to import new graphics, usually bmp files. There are a lot of sources on the forums about using and importing bmp files.
3. A good tutorial on regions? Any region types in mind? You could be talking about activation, filled, wire frame, or canvas.
4. You can change controls in real time. gE has a built in function to do this using remapKey.
SuperSonic wrote:These ones are a little more advanced
1. How do I import my game into xcode?
2. how do I make text messages in my game?
3. What are the basics to creating 3d type games in GE?