Haha! It works man!
Yoo-sow-goud
Yoo-sow-goud

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuError: Out of memory: failed to allocate 2055200 bytes (at PP=1101)
Error: Out of memory: failed to allocate 2055200 bytes (at PP=6)
QuoteEsc may not work if Photoshop is open. Photoshop has a known issue in Win7 where it catches the escape key
bool bRolledOver = false;
function repeatedly_execute_always()
{
GUIControl*gc = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
if (gc == bTest)
{
if (!bRollOverBtnAnim)
{
bTest.Animate(VCRL_ROLLOVERS, 0, 1, eOnce);
bRollOverBtnAnim = true;
bRolledOver = true;
}
}
else if (gc != bTest)
{
if (bRolledOver)
{
//Display("Rolled Over...and no longer over button: play 2nd animation");
bTest.Animate(VCRL_ROLLOVERS, 1, 1, eOnce);
bRolledOver = false;
bRollOverBtnAnim = false;
}
}
}
function repeatedly_execute_always()
{
GUIControl*gc = GUIControl.GetAtScreenXY(mouse.x, mouse.y);
if (gc == bTest)
{
if (!bRollOverBtnAnim)
{
bTest.Animate(VCRL_ROLLOVERS, 0, 1, eOnce);
bRollOverBtnAnim = true;
}
}
else if (gc != bTest)
{
bTest.Animate(VCRL_ROLLOVERS, 1, 1, eOnce); // this animation doesnt play at all when the mouse leaves the button
if (bTest.NormalGraphic != 2752) bTest.NormalGraphic = 2752;
bRollOverBtnAnim = false;
}
}
QuoteYou could play the animation on an invisible object first, then the sprites should be preloaded in memory for when you actually need them.
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.156 seconds with 14 queries.