Quick Question
How to track a characteristic of a sprite as a variable? Something alng the lines of
void beaver(void)
{
int &beaverx;
sp_x(&killerbeaversupersprite, 34) = &beaverx;
&beaverx += 53;
}
that?
Thats probably wrong, but what is the exact thing, if possible?
Thanks.
void beaver(void)
{
int &beaverx;
sp_x(&killerbeaversupersprite, 34) = &beaverx;
&beaverx += 53;
}
that?
Thats probably wrong, but what is the exact thing, if possible?
Thanks.
void beaver(void)
{
int &beaverx;
// -1 will cause it to return the current value without modifying it
&beaverx = sp_x(&killerbeaversupersprite, -1);
// Modify the value
&beaverx += 53;
// Set the value
sp_x(&killerbeaversupersprite, &beaverx);
}
{
int &beaverx;
// -1 will cause it to return the current value without modifying it
&beaverx = sp_x(&killerbeaversupersprite, -1);
// Modify the value
&beaverx += 53;
// Set the value
sp_x(&killerbeaversupersprite, &beaverx);
}