Help with SOCing

Status
Not open for further replies.

Nev3r

Developer
Sonic Team Junior
Kart Krew™️
Kay, I think the question is not very relevant, but I need a reply -.-
A_ChangeAngleRelative and A_ChangeAngleAbsolute functions doesn't work correctly for me.. Is that a bug? Else, if it's my problem, can somebody tell me what do I need to make them work fine? ^^'
 
It just doesn't work correctly.. I don't know if I'm the problem when I put the values.. But well, the random angles doesn't work fine for me. I just wanted to make a 360º random using A_ChangeAngleRelative With VAR1=0 and VAR2=360 but... Looks like it does only from 0º to 80º, no matter which values... I think I could be more exact on the first topic >_<
 
Nev3r said:
It just doesn't work correctly.. I don't know if I'm the problem when I put the values.. But well, the random angles doesn't work fine for me. I just wanted to make a 360º random using A_ChangeAngleRelative With VAR1=0 and VAR2=360 but... Looks like it does only from 0º to 80º, no matter which values... I think I could be more exact on the first topic >_<

Code:
#define ANG45 0x20000000
#define ANG90 0x40000000
#define ANG180 0x80000000
#define ANG270 0xc0000000

#define ANGLE_10 0x071C71C7
#define ANGLE_45 0x20000000
#define ANGLE_90 0x40000000
#define ANGLE_180 0x80000000
#define ANGLE_350 0xF8E38E38
#define ANGLE_MAX 0xFFFFFFFF
#define ANGLE_60 (ANGLE_180/3)

then var1 should be 0 and Var2 should be 4294967295 aka 0xFFFFFFFF
 
Logan_GBA said:
Nev3r said:
It just doesn't work correctly.. I don't know if I'm the problem when I put the values.. But well, the random angles doesn't work fine for me. I just wanted to make a 360º random using A_ChangeAngleRelative With VAR1=0 and VAR2=360 but... Looks like it does only from 0º to 80º, no matter which values... I think I could be more exact on the first topic >_<

Code:
#define ANG45 0x20000000
#define ANG90 0x40000000
#define ANG180 0x80000000
#define ANG270 0xc0000000

#define ANGLE_10 0x071C71C7
#define ANGLE_45 0x20000000
#define ANGLE_90 0x40000000
#define ANGLE_180 0x80000000
#define ANGLE_350 0xF8E38E38
#define ANGLE_MAX 0xFFFFFFFF
#define ANGLE_60 (ANGLE_180/3)

then var1 should be 0 and Var2 should be 4294967295 aka 0xFFFFFFFF

Well, it's still not working fine, almost randoms are 0 or very close to it (As I can see), but sometimes makes a good random... Thanks, anyways. :)

Draykon said:
SRB2's random sucks, it's not really possible to do anything randomly properly.
I see. :P
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top