Home  | Login  | Register  | Help  | Play 

RE: Flash Q&A Thread 6 - We help!

 
Logged in as: Guest
  Printable Version
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 6 - We help!
Page 5 of 8«<34567>»
Forum Login
Message << Older Topic   Newer Topic >>
12/22/2009 15:57:51   
Sea
Member

@atriax

quote:

If you don't want the character to go to the left, on the boundarie, add this:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._x += 10;
}
}



If you don't want the character to go to the right, just change the + symbol to -, like this:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._x -= 10;
}
}



Now, if you don't want the character to go up, add this:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._y += 10;
}
}



But if you don't want it to go down, just change the symbols:

onClipEvent(enterFrame) {
if(this.hitTest(_root.player)) {
_root.player._y -= 10;
}
}


Thanks Dudu
(thats the borders)


as for the animations:

make it a mc (i assume it is)

and make 3 frames inside it (double click)
name the Idle frame "Idle" (without quotations)
the right animation "R"
and the left animation "L"
(also U and D if you want, but if you don't have them then don't worry)

this works for all Right, left, up, and down.


onClipEvent(load){
speed=10;
}
onClipEvent(enterFrame){
a = "Idle";
if(Key.isDown(Key.RIGHT)){
_x+=speed;
a = "R";
}
if(Key.isDown(Key.LEFT)){
_x-=speed;
a = "L";
}
if(Key.isDown(Key.UP)){
_y-=speed;
a = "U";
}
if(Key.isDown(Key.DOWN)){
_y+=speed;
a = "D"
}
this.gotoAndPlay(a);
}


put that on the character
AQ DF MQ  Post #: 101
12/23/2009 13:21:20   
Atriax
Member

Thanks, those really helped :)
Post #: 102
12/24/2009 13:51:00   
Sea
Member

Help -_-

the file name is 3 letters,
its not open anywhere else


Its better, i think it just needed a break

< Message edited by Sea -- 12/24/2009 15:26:18 >
AQ DF MQ  Post #: 103
12/25/2009 19:41:29   
The Braken Bard
Member

Can someone help?
I drew out an outline in red line but I want to change the color to black. How do I do that?
Also the scan of my weapon that I put into Flash turned out to be upside down. How do I turn it around?
AQ MQ  Post #: 104
12/25/2009 20:04:00   
Denolth
Sailing


The Braken Bard, in Flash Properties panel, select the Stroke Color option. If you can't find it, please go to the picture linked below.

http://i494.photobucket.com/albums/rr309/dudu_95/flashex.jpg <-- Click here.

To rotate a bitmap/symbol/etc, right click it and select the Free Transform option. Then you will be able to transform the picture freely. If you want to redo something, simply press Ctrl+Z or Edit -> Undo *action*! ^^
AQ DF MQ AQW Epic  Post #: 105
12/25/2009 22:38:17   
~JW~
Member
 

Ive made the switch to AS3, and was wondering how to assign variable names to a text input field. How can I execute and "if" statement after that?
Post #: 106
12/25/2009 23:10:10   
The Braken Bard
Member

Ok thanks! But now, for some reason, when I use the Paint Bucket Tool it won't color in some parts. Can someone help?
AQ MQ  Post #: 107
12/25/2009 23:13:09   
~JW~
Member
 

It might not be fully connected. Check for breaks.
Post #: 108
12/25/2009 23:56:17   
The Braken Bard
Member

Ah ok. It seems to be working now. Thanks!
AQ MQ  Post #: 109
12/26/2009 13:39:32   
Sea
Member

@JW

I was just now looking at AS3.
and came across this

AS2 - AS3 removed properties
I haven't taken a thorough look at it, but i believe it is all done in the timeline.

You might also want to check out this.
12 great ways to learn Actionscript 3 in flash

Hope it helps
AQ DF MQ  Post #: 110
12/26/2009 19:19:30   
~JW~
Member
 

http://www.5etdemi.com/convert/index.php
Cool little as2- as3 convertor :D
Post #: 111
12/26/2009 19:28:42   
Sea
Member

Thats cool!
AQ DF MQ  Post #: 112
12/27/2009 8:32:48   
biG frend
Member

Bare in mind that convertor won't do the whole job for you. You still have to go back into your new code and instance stuff properly.
AQ DF MQ  Post #: 113
12/28/2009 17:36:30   
Sea
Member

Anyone now why this wont work?

http://www.swfcabin.com/open/1262036431

Codes:

on the frame-

charlink="http://www.aq.com/aw-character.asp?id="


on the "Get my url" button-

on(press){
link=_root.charlink+_root.aqwname
}


on the "goto url" button-

on(press){
getURL(_root.charlink+_root.aqwname);
}
AQ DF MQ  Post #: 114
12/28/2009 17:42:40   
hucki
Member

Sea:
On the text box where you type in your AQW username, click on the 'Auto-Kern' button.
That should fix it.
AQ DF MQ AQW Epic  Post #: 115
12/28/2009 17:50:47   
Sea
Member

auto kern is on, so your saying i should turn it off right? k, testing now.

Thanks! it works!

http://www.swfcabin.com/open/1262038060

< Message edited by Sea -- 12/28/2009 17:52:28 >
AQ DF MQ  Post #: 116
1/16/2010 10:24:41   
The Braken Bard
Member

How do you shade in Flash?
I mean, I know how to shade, but how do you do it in Flash?
AQ MQ  Post #: 117
1/16/2010 11:27:32   
razackie
Member

put in shading lines with the line tool, curve them with the pointer tool, fill in the area with the paintbucket tool, then click on the lines and press delete to delete the shading lines.
AQ DF MQ AQW Epic  Post #: 118
1/18/2010 17:40:16   
Vampire and Human
Member

http://www.kirupa.com/developer/flashcs3/guide_shading_flash.htm

Here's a tutorial explaining the basics. Basically everything razackie said but with cute pictures.

Enjoy.

AQ  Post #: 119
1/26/2010 16:11:01   
biG frend
Member

Quick hello. Can someone explain how if possible you can use index() in flash?
AQ DF MQ  Post #: 120
1/29/2010 16:50:57   
biG frend
Member

Another question, Is it possible to alter properties of a song with actionscript (E.g pitch, BPM, channel, etc..)
AQ DF MQ  Post #: 121
1/29/2010 21:45:58   
Vampire and Human
Member

Via http://www.kirupa.com/developer/mx/volume_slider.htm you can change sound volume, but not pitch etc. as far as I am aware.

Audacity is a good, free program to use if you want to record/edit sounds then put them into Flash.

http://audacity.sourceforge.net/


As for index(), I have no idea what you are referring too.
AQ  Post #: 122
1/30/2010 9:11:45   
biG frend
Member

Well its a function in excell thats used so that you don't have to use a bunch of nested if's instead it reads data from an array and each piece of data outputs with a number (e.g first piece is 0, second piece is 1, third 2 etc).

And as for audio, I have a copy of AVSAudio Editor but I wanted to make a dynamic music system ;(
AQ DF MQ  Post #: 123
1/30/2010 9:33:02   
MegaPoster404
Member

Question. I have:

         _root.tradecheck1 = _root.CharName.charAt(2);
            _root.tradecheck2 = _root.CharName.charAt(5);
            _root.tradecheck3 = _root.CharName.charAt(6);
            if (_root.tradecheck1 == "") {
                _root.tradecheck1 = "B";
            }
            if (_root.tradecheck2 == "") {
                _root.tradecheck2 = "L";
            }
            if (_root.tradecheck3 == "") {
                _root.tradecheck3 = "H";
            }

And tradecheck1 always comes out as E, tradecheck2 always comes out as F, and tradecheck3 always comes out as O, no matter what CharName was equal to.

Ah, the code works fine, just _root.CharName equaled

<TEXTFORMAT LEADING="2"><P ALIGN="CENTER"><FONT FACE="AR CENA" SIZE="21" COLOR="#000000" LETTERSPACING="0" KERNING="0">Value here</FONT></P></TEXTFORMAT>

How do I fix this?

And yes, it does this with Auto Kern both on and off. So that's not it.

< Message edited by MegaPoster404 -- 1/30/2010 9:44:48 >
DF MQ  Post #: 124
1/30/2010 15:04:14   
//.Shadow.\\
Member

Try unsetting the html on the text thing if auto kern dosent do it.

The button is;


~Parker

_____________________________


MY FIRST Avatar went live :) The tree <-
AQ DF MQ  Post #: 125
Page:   <<   < prev  3 4 [5] 6 7   next >   >>
All Forums >> [Gaming Community] >> [Legends and Lore] >> Artists of Legend >> Art Academy >> RE: Flash Q&A Thread 6 - We help!
Page 5 of 8«<34567>»
Jump to:



Advertisement




Icon Legend
New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts




Forum Content Copyright © 2018 Artix Entertainment, LLC.

"AdventureQuest", "DragonFable", "MechQuest", "EpicDuel", "BattleOn.com", "AdventureQuest Worlds", "Artix Entertainment"
and all game character names are either trademarks or registered trademarks of Artix Entertainment, LLC. All rights are reserved.
PRIVACY POLICY


Forum Software © ASPPlayground.NET Advanced Edition