|
|
#1 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
animatedlayer on mouseover
how do i make a door like thing that slides open when the mouse passes over the door, to reveal a number of buttons underneath? is there a quick way or does it have to have a script, if it needs a script can i have it a multiple script so i can just define what to do in the xml and have the single script be used by multiple doors?
i have tried this by going through other skins but failed. ![]() |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
|
Make two layers (for the door)
And in the script load these, and use OnMouseOver
|
|
|
|
|
|
#3 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
what?
onmouseover="door.link.to.elements" onmouseout="door.otherlink.to.element" if this is right what about the animation part? ![]() |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
|
I think something like :
-defining door -onmouseover move door up -onmouseout move door down (I dunno if it's possible) something like that |
|
|
|
|
|
#5 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
i dont know where that goes in a script or xml, that doesnt sound right (not that i know), anyone else that knows?
![]() |
|
|
|
|
|
#6 |
|
Guru Meditation (Alumni)
Join Date: Aug 2001
Location: Quebec, Canada
Posts: 191
|
Can be achived with scripting.
layer.onEnterArea() { // hide or show or animate some layers } layer.onLeaveArea() { // hide or show or animate some layers } It *really* depends on what you want to do and how you want to do it. I'm doing something for Epsilux and I'll post some code tomorrow, it should help you. Regards, -L |
|
|
|
|
|
#7 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
scripting takes skill, skill that i dont have, does the script go like:
layer.onEnterArea(Animation) { // hide or show or animate some layers } layer.onLeaveArea(Animation2) { // hide or show or animate some layers } or something, is there a basics or scripting tut anywhere apart from rt's site which isnt really a tut? i not does anyone want to write a small one for me and others that have no idea but want to? ![]() |
|
|
|
|
|
#8 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
ummmmm
lil help
![]() |
|
|
|
|
|
#9 |
|
Forum Pirate
Beta Team Join Date: Oct 2001
Posts: 2,032
|
rip it out of "BoxOr"
the "Official" skin BoxOr has somthing like this... y dont you check out the scripts to this
i always do stuff like that
|
|
|
|
|
|
#10 | |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
Re: animatedlayer on mouseover
Quote:
![]() |
|
|
|
|
|
|
#11 |
|
Forum King
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
|
The source code isnt included in those "official" skins
*right?* I havent checked but Im really think it's like that |
|
|
|
|
|
#12 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
there is no .m files, just maki, now can some1 help me?
![]() |
|
|
|
|
|
#13 |
|
Forum King
Join Date: Aug 2001
Location: Perth, Australia MSN: mcbriar@ii.net Posts: All your posts are belong to me!!!!
Posts: 2,607
|
my skin is currently at a progress rate of 0% I NEED HELP! we all like downloading new skins and if i were helped you would all probably have beta 1 now. i have tried over and over but cant get it, PLEASE HELP ME SOME ONE!
![]() |
|
|
|
|
|
#14 |
|
Forum King
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
|
Go and take a script (like a drawer script) rip it apart and use the code what is in the other posts in this thread, that will help you
|
|
|
|
|
|
#15 |
|
Senior Member
Join Date: Jun 2000
Location: The City
Posts: 303
|
This isn't drawers or anything that fancy, just some rollovers. From my Diablo II Pentagram skin:
code: |
|
|
|
|
|
#16 |
|
Forum King
Join Date: Mar 2001
Location: irc.tehflap.org/*******
Posts: 3,085
|
You made an animation you can also do something like
code: |
|
|
|
|
|
#17 |
|
Senior Member
|
The boxor skin had the source with it. I am looking at it once in a while to see how to do some things.
Instead of, DIIAnimLayer.onEnterArea() { DIIAnimLayer.setStartFrame(1); DIIAnimLayer.setEndFrame(10); DIIAnimLayer.setAutoReplay(1); DIIAnimLayer.setSpeed(50); DIIAnimLayer.play(); } DIIAnimLayer.onLeaveArea() { DIIAnimLayer.setStartFrame(10); DIIAnimLayer.setEndFrame(0); DIIAnimLayer.setAutoReplay(0); DIIAnimLayer.setSpeed(5); DIIAnimLayer.play(); } the boxor skin passes values to a function that does similar things. Anyway... I even improved upon it, for the onLeaveArea(), if you replace "setStartFrame(10)" with setStartFrame(DIIAnimLayer.getCurFrame())", it will rewind from the point where it left off, so your animation won't appear to snap. |
|
|
|
|
|
#18 |
|
Senior Member
Join Date: Jun 2000
Location: The City
Posts: 303
|
Hey, that works. Good stuff. One thing I neglected to mention before. The code I posted is for rollovers. If you're making rollunders like I am, you'd have to do it more like Box0r does, with procedures, and you'd have to call your animated layer from your button. As in:
code: Notice the the base is "Previous", a button, but the StartAnimation is on PreviousAnim, an animated layer. StartAnimation() is the procedure out of the box0r script, which you may have to modify for your purposes (I did). |
|
|
|
|
|
#19 |
|
Forum King
|
This is getting C'ish, /me like.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|