How can i make the character's eyes look in a specific direction such as if Mario's head is looking left, Mario's eyes look left and same for the right direction?
gMarioStates[index].marioBodyState.eyeState = MARIO_EYES_*
but for the miliseconds, how do i know it when the head goes left or rightYou can find all of the MARIO_EYES_* constants in the documentation.Code:gMarioStates[index].marioBodyState.eyeState = MARIO_EYES_*
whatI know this isnt my question, was following this thread to try doing this with my model. And here is the dumb question, which file is this code in because I've ctrl + fed the 3 files that fast64 created after export?
The code that AgentX posted to find the stuff for the left/right eyes, I cannot find it anywhere, I was asking which document was it in.what
ohThe code that AgentX posted to find the stuff for the left/right eyes, I cannot find it anywhere, I was asking which document was it in.
Try looking here for the gMarioStates mentioned how to use it, and here for the struct it produces.The code that AgentX posted to find the stuff for the left/right eyes, I cannot find it anywhere, I was asking which document was it in.
does this go into the Lua file?I have an absurdly profound knowledge of the docs, which is the only reason I can consider myself even a relatively competent SM64 CoopDX Modder.
And even that’s kinda exaggerating the little skill I have.
Try looking here for the gMarioStates mentioned how to use it, and here for the struct it produces.
marioBodyState should contain everything you’re looking for.
Emphasis on should, as I am rarely entirely reliable.
I am rarely entirely reliable.
but when i try putting the eye in the same specific direction (as a test I'm doing with the d-pads for the eye movement) it just gives me a script errorI have an absurdly profound knowledge of the docs, which is the only reason I can consider myself even a relatively competent SM64 CoopDX Modder.
And even that’s kinda exaggerating the little skill I have.
Try looking here for the gMarioStates mentioned how to use it, and here for the struct it produces.
marioBodyState should contain everything you’re looking for.
Emphasis on should, as I am rarely entirely reliable.
function mario_update(m)
if (m.controller.buttonDown & D_JPAD) ~= 0 then
gMarioStates[1].marioBodyState.eyeState = MARIO_EYES_DOWN
elseif (m.controller.buttonDown & U_JPAD) ~= 0 then
gMarioStates[1].marioBodyState.eyeState = MARIO_EYES_UP
elseif (m.controller.buttonDown & L_JPAD) ~= 0 then
gMarioStates[1].marioBodyState.eyeState = MARIO_EYES_LEFT
elseif (m.controller.buttonDown & R_JPAD) ~= 0 then
gMarioStates[1].marioBodyState.eyeState = MARIO_EYES_RIGHT
end
end
hook_event(HOOK_MARIO_UPDATE, mario_update)
it's okay, don't worry about it.Sorry I wasn't much help