![]() |
#361 |
Major Dude
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
|
help
OK GUYs I got alot of the Dominator Coded (buttons and whatnot). I need to know the best way to Code the Guns. The Buttons at the bottom of the skin opens the sliding guns. I want the guns to slide out at the same time. I have the chainguns made with 2 animations.
I will overlay the animations on top of the sliding turrets. So the actual animations will move with the turret structure.(is this possible? or do you guys know a better way?) What is also the best way to make the animation smooth. Lets say a song has just started and is not very loud, I want the guns to just spin and not shoot till the noise and beats get loud. Any coding advice and know-how would be appreciated, and will probably be used in the skin. |
![]() |
![]() |
![]() |
#362 |
Major Dude
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
|
animations
![]() |
![]() |
![]() |
![]() |
#363 |
Senior Member
Join Date: Nov 2002
Location: astralia
Posts: 386
|
Well i've finally managed to make a MAKI scripts that works on my own.Its my best attempt to make popup menus easy and i made it using
one of Frissbemonkeys scripts as a reference. |
![]() |
![]() |
![]() |
#365 | |
Major Dude
|
Quote:
![]() Published: OvalAmp | Scythe | Simple Amp(code) | PAD(code) | Classix10k | LayerONE (code) WIP: Aeschere | Manta | Winamp 5 SingleGUI Need some help? How to write a MAKI script | Custom Vis Script | Add a Notifier to Your Skin |
|
![]() |
![]() |
![]() |
#367 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Quad,
What I would do is keep everything separate. Have the spinning guns be one animation, so that once the music starts, you just have that spinning. Then, when the volume is above a certain level, you could show different frames of the firing animation. Oh, and to have them all slide out at the same time, just make sure they're in whatever groups you move. ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#368 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
ok
this is my first try at scripting so its prolly not n e good. i was trying to compile this file to maki but i can't get it to work. n e help? script is below and i will attach the .m code: |
![]() |
![]() |
![]() |
#369 |
Senior Member
Join Date: Aug 2002
Location: hell
Posts: 232
|
Okay, problem 1: Looks like you forgot to define what "Layout Groups" actually is. You've got pcGroup=getcontainer.getlayout.findobject("Layout Groups"), but pcGroup not in the Global Group Group1, group2... area at all.
Second, I'm not 100%, but pretty sure that in order for .settarget... and .gototarget() to work, you have to do it for one GUIobject at a time. Instead of: G1.settargetblah(); G2.settargetblah(); G1.gototarget(); G2.gototarget(); It'd be: G1.settargetblah(); G1.gototarget(); G2.settargetblah(); G2.gototarget(); If I'm wrong about this, somebody correct me. And lastly, there's two problems with the following line: ChngLytGrp.onLeftButtonUp(int x, int y) { if (InstantMode) { CycleDisplayModeInstant(); } } The first is, there is No InstantMode. You've got it defined as Slidemode, and as an Int at that. For the syntax to be proper, I'd recommend changing Slidemode to a boolean, which is what I did in the attached script. Oh, and your custom function CycleDisplayModeInstant() is called CycleDisplayModeSlide() in the actual function. Looks like you got the int and function names scrambled. The attached script compiled fine, you've just gotta make sure all your XML stuff is named the same now, and it should work for ya. Good luck. Edit: And if you've already attached the script, it's kind of redundant to paste the entire thing into the message as well. |
![]() |
![]() |
![]() |
#370 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
sorry jimmy
it compiled but it didn't work. i can't b bothered finding out whats wrong right now. what im looking for now is how to get an animation to play at the skin start up and then disappear whens its done. how can this be done? m*69 |
![]() |
![]() |
![]() |
#372 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
nope
wasn't on page 3. what am i exactly looking for in the thread? m*69 |
![]() |
![]() |
![]() |
#373 | |
The Shark
(Forum King) |
Quote:
|
|
![]() |
![]() |
![]() |
#374 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
thanx very much hh
that helps heaps. but i still got a problem - where i want to put it ive got other stuff. i want the anim to play dissapear then the main tickers/timer to come up after it has finished. pretty sure that would need a script. if u got n e ideas plz post back. m*69 |
![]() |
![]() |
![]() |
#376 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
oo
thanx so much hammer. i would do it if i knew maki ![]() m*69 |
![]() |
![]() |
![]() |
#377 |
The Shark
(Forum King) |
this should work for ya
![]() code: If you can't work out how to use it, send me your skin and I'll do it for you. |
![]() |
![]() |
![]() |
#378 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
thanx heaps hh
i should b able to work it out. i understand maki but i can't write it hehe. ill post back if i have n e problems. m*69 p.s thanx for the speedy reply |
![]() |
![]() |
![]() |
#379 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
it won't compile. me or the script?
m*69 |
![]() |
![]() |
![]() |
#381 |
Major Dude
Join Date: Jan 2003
Location: Washington State
Posts: 1,133
|
Guys can you think of anything that has not been done in a Winamp that is in Maki, That would be really cool in a A new winamp player. What are the limits of Maki?
|
![]() |
![]() |
![]() |
#382 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
hammer
i figured it out. when i added a thing at the start tellin me what the script was about i only used / instead of //. im pretty stupid hehe m*69 |
![]() |
![]() |
![]() |
#384 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
yeah
but im gettin a script error once ive added it to the xml. n e ideas? m*69 |
![]() |
![]() |
![]() |
#386 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
is there any way i can make an animation from different files. like ive got 58 frames on an animation that ive saved each frame individually. is there any way that i can call each file and put it into a frame so that it plays them all?
|
![]() |
![]() |
![]() |
#387 | |
Major Dude
(Reviewer) Join Date: Aug 2002
Location: South Florida
Posts: 1,388
|
Quote:
http://canada.landoleet.org/docs/pub...eference_layer There's an example of how it works. It seems much more complex than the frame strip method, so you may want to save yourself some headache and just put the frames together into 1 graphic. You could also animate individual frame graphics via MAKI, but once again that just seems like more work than necessary. |
|
![]() |
![]() |
![]() |
#389 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
i went with rpeters suggestion with one big file. the anim is only small about 50x50 and its now 60+ frames but wil size is fairly small only about 600kb so im happy. damn thing took half an hour to put together but n e ways its done.
m*69 |
![]() |
![]() |
![]() |
#390 |
Senior Member
Join Date: Nov 2002
Location: astralia
Posts: 386
|
could someone look at my MAKI script cause it compiles ok but when i use the config nothing happens.If you want to lok at my xml please ask.
thnx |
![]() |
![]() |
![]() |
#391 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
hey
ive got a script that i made but it won't compile properly. im thinking that it might be the if statements but i not sure. u can have a look at the .m . its attached at the bottom thanx |
![]() |
![]() |
![]() |
#392 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Yeah... I'm thinking it might be the if statements too... You might want to have conditions for them. Do you want those things to always happen when the button is pushed? If so, just take out the ifs altogether. Otherwise, you need to decide the conditions that well let the events happen.
code: ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#393 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
all i want to happen is when u click the button it shows the group. im pretty sure that if i took out the ifs it would work.
ill take em out and try it m*69 |
![]() |
![]() |
![]() |
#394 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
woohoo
it compiles without the ifs thanx for help frisbee m*69 |
![]() |
![]() |
![]() |
#395 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
ok
the script works bar one thing. at the script start up i want only the tickers/timers group to show but for the script to work u need them to b loaded in player-normal which then shows them all. is there sumthin that i can add to my script to hide all the other groups at the skin startup so that its onlt the tickers/timer group showing? m*69 |
![]() |
![]() |
![]() |
#396 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
In onScriptLoaded(), just hide() the Groups that you don't want to be showing. Make sure you do that after you get your Objects and you're set.
~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#397 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
thanx frisbee
i was wondering how to get the groups to fade in fade out. i was thinkin that u add an animation for the first bit, then hide and show groups then play the other half of the animation. or is there a better way to do it? m*69 |
![]() |
![]() |
![]() |
#398 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
What I usually do is just reuse the image I used for the Display's background over top of everything else. Set it's alpha to 0 at first, but whenever you switch screens, fade it in to 255, then hide the current group and show the new one, then fade back to 0.
Hope this helps, ~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
#399 |
Sunshine
(Major Dude) Join Date: Jan 2003
Location: Brisvegas, Australia
Posts: 1,248
|
how do u do that frisbee?
m*69 |
![]() |
![]() |
![]() |
#400 |
Major Dude
Join Date: Jun 2002
Posts: 851
|
Well, it's kind of complicated to explain. Basically, you'd need a variable to keep track of which mode you are in, then when they push a button setTargetAlpha(255) and gotoTarget() with your cover layer, when it reaches its target, switch to the new mode(show one group, hide the rest), then setTargetAlpha(0) and gotoTarget again to show the new display mode. For an example, look at Dominator, specifically display.m. There is a lot more going on in that script, but you might be able to get what you need out of it.
~FrisbeeMonkey My Skins Skinning References: MAKI Scripts - GUIDs & Button Actions - Skinner's FAQ Skin Help: MAKI Cheats - Component Skinning - Skinning Tutorial |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|