Ok, i changed around the header file a bit.
#pragma once
#include "SC_Collision.h"
int IDObject;
int IDGround;
SC_SetupObject ( IDObject, 2, 0 );
SC_SetupObject ( IDGround, 1, 0 );
int IGravity=1;
int IUpForce=1;
bool BGravity;
bool BGround;
void WhileLoops();
void Collision();
void Collision()
{
if ( SC_GroupCollision ( IDObject, 1 ))
{
BGravity = false;
BGround = true;
}
if ( SC_GoupCollision ( IDObject, 1 )== 0 )
{
BGravity = true;
BGround = false;
}
}
void WhileLoops()
{
while ( BGravity == true )
{
dbMoveObjectDown ( IDObject, IGravity );
if ( SC_GroupCollision ( IDObject, 1 ))
{
BGravity = false;
BGround = true;
}
}
while ( BGround == true )
{
dbMoveObjectUp ( IDObject, IUpForce );
if ( SC_GoupCollision ( IDObject, 1 )== 0 )
{
BGravity = true;
BGround = false;
}
}
}
Now, I am going to make another header file that includes this one and the new header file I want it to be something like sparky's, where it is like
SC_SetupObject ( int Obj, int Group, int Shape );
I want to do
JG_StaticObject ( int GroundID );
JG_Object ( int ObjectID );
JG_Gravity ();
How would I do that?
Your signature has been erased by a mod - 120 high maximum please