Hi, I have just started with DarkGDK but from the beginning i faced a problem which I can't solve. Let's say we have a 3D object, in my program it's a knight - a free object from Game Creator Store. What I want to do is to change it's position during walking animation - simple illusion of walking. I tried to do this on my own but I can't. I will be really glad i someone show me how to do this. Here is the code, simple stuff:
#include "DarkGDK.h"
void DarkGDK (void)
{
dbLoadObject("Knight (Unarmed).x", 1);
dbScaleObject(1,20,20,20);
dbPositionObject(1,0,0,0);dbYRotateObject(1,-90);
dbSetObjectFrame(1,10);
dbSyncOn();
dbSyncRate(60);
dbMakeObjectCube(2, 70);
dbColorObject(2, RGB(0, 0, 0));
dbScaleObject(2, 100, 0.1, 100);
dbPositionObject(2, 0, 0, 0);
dbPositionCamera(5, 30, -30);
dbPitchCameraDown(25);
while(LoopGDK())
{
if(dbMouseClick() == 1)
{
dbLoopObject(1, 10, 30);
dbSetObjectSpeed(1, 40);
}
dbSync();
}
return;
}
In attachment you have this object