The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.34 / 5.00 31,296 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.07 / 5.00 10,082 Viewsfor the multiple movie clips, use the hitTest function. You can find it in the AS: Main thread. and sorry for disappointing the others.
I guess people can really never appreciate scripts in their text form. But im sure once released in a game, everyone would know why the script is so important.
I know some of you already have these experiences.
oh and the programming language im using is also actionscript but on a different dialect. I'm sure everyone uses Macomedia Acion script. But I use Selteco Scripts. so you need to modify some things for it to work on your system. For example:
I just used _xmouse directly... on macromedia it is _root._xmouse.. am i right? or...
dont use the whole song... we are limited to 5 megs... save time uploading too...
dont worry, i wont blam you if i encounter your submission in the under judgement panel.. thats all...
i wont blam you but i dont know if others would...
make your own website and post it there...
you wont delete your own file...
then you can show us...
is this a real-time game?
if this is an RT game then you should use setInterval on the if statement.
btw, a real-time game is when you can control your unit anytime...
NON-real time games are usually the ones which include turns...
(enemy's turn, your turn... like those)...
if this is action, adventure, fighting game (or the like), use the setInterval function....
so far... how many are we in the team?
keep me updated. thanks.
hitTest(<character>,<object>);
returns true if they got collision..
am I correct other action scripters?
i just got this from a book in our library...
you're lucky coz my hobby is what you just wanted to do...
import your picture to the stage...
break it apart,
trace it...
remember to use lines... curve it, move it's corner, trace everything even color...
about the colors, dont forget the shadows! if youre drawing Anime, the shadows are very important!
for example, the person's skin is flesh, and of course, he has hair... at his forehead, he must have shadows of his hair, dont forget to trace the shadows colors!
using the picture's colors, if you use the regular pippette (is my spelling correct?),
you cannot copy a color from an imported picture...
do this, use the pippette, then click on the box of the color (you know, at the left side...) then all the colors available will appear in a table... click on the color you want to imitate without closing the table... tada!!!
did i help? sorry, im a filipino, im not good in english...
At 5/29/06 01:44 PM, Barbeq wrote: Is this tutorial useful for a noob like me, actionscript gods?
is this sarcasm?
and im still working on the RTS game...
its also a flash ill be submitting next month (july)...
called "Command & Defend: RA"...
sorry guyz for being boastful before...
i guess i used the wrong words to say...
what i meant from YOUTH is not that i'm 16... its just because that...
i have just been scripting for maybe more than ONE month...
i've started to learn action script in flash maybe first week of May...
that was the time i submitted Tomoko Dressup 1 (anybody familiar with the title?)
yeah, i got really low scores... but as i continue...
I did good scipts on Detective Conan 1 and on Letter bombs 3...
but now I'm working on a Real-time Strategy game... watch out...
and aside from that, I decide to help this guy out...
to clear things out... i saw your animation (the picture)...
are the characters big like that? i thought it was like...
you know, small characters that move up, down, left, right...
(well, almost all rpgs are made that way)...
coz i got a really good program for things like that...
you click anywhere on the screen, the character will move to that place...
even if you move screen to any direction... (does anyone get what i mean?)
ill send you a sample flash...
but the big character is also useful when you are talking to somebody...
fighting scenes... am I dictating too much...
sorry, I just want to use my best program that i made for this work...
sory dont have a MSN account... but i have a yahoo account...
but we dont need those, with Newground's new private messaging system,
youll be able to tell me what part ill do or give me some updates...
just contact me through NG... thanks...
my hands heating up to type...
but wait, this is a role-playing game right?
i dont know how to script like:
players seeing each other online,
i can help maybe with the stats, skills, attacks and monsters attributes...
that's my part...
i guess, do i get that part? or you need something else? like items and equipment...
i can help there too... but it will take time so at least hire more artists...
i may have misunderstood you but if im reading you correctly take my advice...
var is a reserved word
dont use it as a variable...
i would just like to say something here...
i cant give some help to YOU today but to OTHERS...
please insert some comments on each lines on what they do...
ya know... // comment
its really hard to decipher every line of the program...
but if i have time, i'd be able to help with it coz im also making my game maps...
about the actionscripting...
ill be able to help you with your RPG-like game (the medieval thing)...
and if you want some tutorials, i have here a PDF file...
it contains, explains and gives examples and everything
about all scripts I know today in flash...
i forgot where i downloaded it... ill try to remember but til then, wait for my re-post...
heres an idea
select the whole thing...
i mean your button (the text the box and everything you wanna be clickable)
convert to symbol
add an onClick event to the symbol...
im willing to help... but i dont need your macromedia flash 8... i already have one...
iill stay here in my house and work on the program you need...
ill just upload it to you and my name's with all other co-authors...
i can just give a part of it... not all scripts, i have my own works too ya know...
just tell me how the game works and what part of the program is needed...
i just need my name in it...
maybe not with the co-authors but at least in the credits...
thanks... im not a pro but we must never underestimate youth... (i'm 16)
real time strategy games...
here are some scripts that can help...
first draw the map... its up to you if its 3d or 2d... just have it...
the map must be bigger than the flash itself...
sure it must be bigger, who want to play a strategy game in a small map?
then your unit... draw the unit... then convert into sprite or movieclip or whatever you call it...
then then you click on the map, (its up to you if you wanna use MouseDown or MouseUp),
x = _xmouse - unit._x;
y = _ymouse - unit._y;
x and y is any variable... you can use your own if x an y are already used....
then _xmouse and _ymouse are the coordinates of the mouse onClick...
unit._x and unit._y are the coordinates of the unit you want to move.
function unitmove(){
if(x>0){ unit._x = unit._x+4; x=x-4; }
if(x<0){ unit._x = unit._x-4; x=x+4; }
if(y>0){ unit._y = unit._y+4; y=y-4; }
if(y<0){ unit._y = unit._y-4; y=y+4; }
}
setInterval ( function() { unitmove(); } , 1 );
unit._x = unit._x + 4;
this is to move the unit4 pixels to the right... and so are the other four to their respective directions... you may change the 4's to change unit speed...
MOVING THE SCREEN WHEN THE MOUSE HITS THE SIDES OF THE FLASH...
like the real RTS games, when you move your mouse to the left side, the screen will move to the left... this is maybe the longest, or the shortest of all you scripts...
it depends on how many units are on the map...
scrollspeed=8;
function screenmove() {
if (_xmouse < 20) { map._x=map._x + scrollspeed; unit._x=unit._x + scrollspeed; }
if (_ymouse < 20) { map._y=map._y + scrollspeed; unit._y=unit._y + scrollspeed; }
if (_xmouse> Stage.width-20) { map._x=map._x - scrollspeed; unit._x=unit._x - scrollspeed; }
if (_ymouse > Stage.height-20) { map._y=map._y - scrollspeed; unit._y=unit._y - scrollspeed; }
} setInterval ( function() { screenmove(); } , 1 );
you set your own scroll speed higer values are faster screen movements.
or you can ask the user (player) in the game options...
the 20's are distances of the mouse to the sides for the screen to move...
on June, I'm releasing:
Command and Defend: Red Alert (allied version)
the controls, interface and features are strategy game
but i wont call it a strategy game but a defense game
coz the enemy has no base, only attacks... just defend your MCV...
you can control your units to move attack, and what... big map too...
try selteco flash designer
download it, its free...
its a 30-day trial but wait!
after the 30 days, you can still use it but with a watermark...
if you dont like the selteco watermark,
just get some serial codes from the net.
THere are lots of codes of selteco there.
Hey guyz! If you have trouble making flash with Macromedia,
Try downloading Selteco Flash Designer. It's FREE!
It is very user friendly.
It's like Microsoft Powerpoint but even better.
You can add acionscripts easier.
Has a built-in Preloader (still you can have your own)
I highly recommend this flash-making program.
Try it guyz! It's fun!
I have Selteco Flash designer 5. > downloaded from selteco.com of course.
My trial period already expired so I need a new one.
I bought macromedia flash professional 8 but it can't work on my pc.
does anybody know where I can Download one??
> thanks =D