Bluestribute wrote:
archmage wrote:
Bluestribute wrote:
Mouse.hide
That won't work.
You forgot the brackets.Lol, you know what i mean (you should at least)
Ok, if you put Mouse.hide into your code nothing will happen. It requires the brackets. This isn't scratch, everything counts (except semicolons, flash puts those in for you, but you should still put them in because its good practice).
If you want to tell someone a command in programming make sure the command will work when they execute it.
Also, a fun command.
The trace command.
trace("Your message will pop up in an output box");
Last edited by archmage (2008-08-08 20:04:46)
Offline
coolstuff wrote:
I REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEALLLY WANT FLASH! SOOOO BAD! Maybe I'll buy it.
I gave links to trial versions in the first post in this tread. Try those out, especially if you are considering buying it.
Offline
archmage wrote:
coolstuff wrote:
I REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEALLLY WANT FLASH! SOOOO BAD! Maybe I'll buy it.
I gave links to trial versions in the first post in this tread. Try those out, especially if you are considering buying it.
I've used it several times. I know how to do fairly basic animations and would love to learn how to do games. At a certain website you can buy it for $250, with free shipping. Now THAT Is a good deal.
Offline
archmage wrote:
Newareagle, it wouldn't be too difficult for someone who knows the basics of flash.
I went ahead and remade your project with the first level into flash. It took me about 2 hours but most of the programming that flash will need is done.
http://spamtheweb.com/ul/upload/080808/70709_demo.swf
Here is the fla
http://spamtheweb.com/ul/upload/080808/70912_factory_escape.fla
This would take me no more than a day to complete since you already have all the levels already made. If you want I can work with you to make a complete flash version of it, then get it sponsored for cash and submit it to newgrounds.
If you want to do this yourself you should go to this link and learn everything in the basic section.
http://www.newgrounds.com/bbs/topic/638183
Also, the guys at NG are very good with flash so you can ask for help if the flash forums if you need it.
Thank you so much archmage!!! Ill try to learn how to finish it, then maybe sell it!
Offline
Oh yes, archmage, can we work together on it? Maybe it will help me learn the basics of flash? I am having trouble finding the scripts! (Thats how noobish I am with Flash ) Also if it did get sponsored we could split it 50/50 (Me for original game and you for translation to flash?). Also, we can maybe do this combo more. I can make games in Scratch, then you turn them in Flash versions. That way we can both earn money and have fun. Tell me what you think, because i have always wanted to earn some extra money off making games.
Offline
newareagle wrote:
Oh yes, archmage, can we work together on it? Maybe it will help me learn the basics of flash? I am having trouble finding the scripts! (Thats how noobish I am with Flash
) Also if it did get sponsored we could split it 50/50 (Me for original game and you for translation to flash?). Also, we can maybe do this combo more. I can make games in Scratch, then you turn them in Flash versions. That way we can both earn money and have fun. Tell me what you think, because i have always wanted to earn some extra money off making games.
Sure that all sounds good. Just make a newgrounds account and pm me for details.
http://archmage-flash.newgrounds.com/
If you want to learn flash look at the links at the bottom of the first post in this thread. Also, look at my programming to see how I did things.
Offline
archmage wrote:
newareagle wrote:
Oh yes, archmage, can we work together on it? Maybe it will help me learn the basics of flash? I am having trouble finding the scripts! (Thats how noobish I am with Flash
) Also if it did get sponsored we could split it 50/50 (Me for original game and you for translation to flash?). Also, we can maybe do this combo more. I can make games in Scratch, then you turn them in Flash versions. That way we can both earn money and have fun. Tell me what you think, because i have always wanted to earn some extra money off making games.
Sure that all sounds good. Just make a newgrounds account and pm me for details.
http://archmage-flash.newgrounds.com/
If you want to learn flash look at the links at the bottom of the first post in this thread. Also, look at my programming to see how I did things.
For some reason I cant see any of your scripts. is it hidden when you dowload it? i know that there is a script-1 and that theres the actions part, but i dont see any scripts anywhere. Also Im going to make a newgrounds account called areagle. If we do collaborate were going to need a logo or something. Got any ideas?
Offline
newareagle wrote:
archmage wrote:
newareagle wrote:
Oh yes, archmage, can we work together on it? Maybe it will help me learn the basics of flash? I am having trouble finding the scripts! (Thats how noobish I am with Flash
) Also if it did get sponsored we could split it 50/50 (Me for original game and you for translation to flash?). Also, we can maybe do this combo more. I can make games in Scratch, then you turn them in Flash versions. That way we can both earn money and have fun. Tell me what you think, because i have always wanted to earn some extra money off making games.
Sure that all sounds good. Just make a newgrounds account and pm me for details.
http://archmage-flash.newgrounds.com/
If you want to learn flash look at the links at the bottom of the first post in this thread. Also, look at my programming to see how I did things.For some reason I cant see any of your scripts. is it hidden when you dowload it? i know that there is a script-1 and that theres the actions part, but i dont see any scripts anywhere. Also Im going to make a newgrounds account called areagle. If we do collaborate were going to need a logo or something. Got any ideas?
Ah you need a lot more practice with flash so look at some tutorials.
In flash there are many different frames and code can be placed on frames or on symbols located on the frames. Try going through all the frames and clicking the different movieClips.
As for logos, I don't really think its necessary. But I can put a button saying made by areagle and archmage-flash with link to our profiles.
Offline
archmage wrote:
newareagle wrote:
archmage wrote:
Sure that all sounds good. Just make a newgrounds account and pm me for details.
http://archmage-flash.newgrounds.com/
If you want to learn flash look at the links at the bottom of the first post in this thread. Also, look at my programming to see how I did things.For some reason I cant see any of your scripts. is it hidden when you dowload it? i know that there is a script-1 and that theres the actions part, but i dont see any scripts anywhere. Also Im going to make a newgrounds account called areagle. If we do collaborate were going to need a logo or something. Got any ideas?
Ah you need a lot more practice with flash so look at some tutorials.
In flash there are many different frames and code can be placed on frames or on symbols located on the frames. Try going through all the frames and clicking the different movieClips.
As for logos, I don't really think its necessary. But I can put a button saying made by areagle and archmage-flash with link to our profiles.
Ok, sounds good. Also i was thinking if we changed the red circle to an animated person with a view from the top it may look better. Ill look at the project again and read some tutorials.
Offline
do u know the equivilant of wait in flash?
Offline
in javascript it's timeout(milliseconds) or something like that. Actually, I don't use wait in Javascript so I'm not quite sure. But since I don't own flash...
well, maybe it's something like tthat?
Last edited by coolstuff (2008-08-09 11:20:05)
Offline
archmage wrote:
Use Mouse.hide();
Pretty simple command.
I know, and I have been trying, but it always tells me that it should be on the clip event handler. What/where is that??? I have been coding on the object directly, is there another place I am supposed to put all this???
Offline
Cyclone103 wrote:
archmage wrote:
Use Mouse.hide();
Pretty simple command.I know, and I have been trying, but it always tells me that it should be on the clip event handler. What/where is that??? I have been coding on the object directly, is there another place I am supposed to put all this???
onClipEvent (enterFrame){
Mouse.hide();
}
Offline
coolstuff wrote:
in javascript it's timeout(milliseconds) or something like that. Actually, I don't use wait in Javascript so I'm not quite sure. But since I don't own flash...
well, maybe it's something like tthat?
Flash has timeouts as well.
http://www.newgrounds.com/bbs/topic/341834
Offline
Cyclone103 wrote:
archmage wrote:
Use Mouse.hide();
Pretty simple command.I know, and I have been trying, but it always tells me that it should be on the clip event handler. What/where is that??? I have been coding on the object directly, is there another place I am supposed to put all this???
All code that goes on MCs need clipEvent handlers.
However you can place that command on a frame and it shouldn't give you problems.
Here is a list of clipEvent handlers. They go in the brackets of this code
onClipEvent(){
//insert code here
}
load
unload
enterFrame
mouseDown
mouseUp
keyDown
keyUp
data
Buttons also have their own event handlers.
Offline
Bluestribute wrote:
Cyclone103 wrote:
archmage wrote:
Use Mouse.hide();
Pretty simple command.I know, and I have been trying, but it always tells me that it should be on the clip event handler. What/where is that??? I have been coding on the object directly, is there another place I am supposed to put all this???
onClipEvent (enterFrame){
Mouse.hide();
}
In this case it would be more appropriate to use the load clip event handler.Using enterFrame causes redundancy which is bad.
http://en.wikipedia.org/wiki/Redundant_code
enterFrame will execute the code every frame but you only really need to execute it once.
//This is better
onClipEvent (load){
Mouse.hide();
}
Offline
archmage wrote:
coolstuff wrote:
in javascript it's timeout(milliseconds) or something like that. Actually, I don't use wait in Javascript so I'm not quite sure. But since I don't own flash...
well, maybe it's something like tthat?Flash has timeouts as well.
http://www.newgrounds.com/bbs/topic/341834
Wow, I didn't expect to be right seeing as I've never used Flash to make a game before!
Offline
How do u tell the x and y of an object, so u can use the shapeflag against it
Offline
deatheater wrote:
How do u tell the x and y of an object, so u can use the shapeflag against it
_root.yourobject._x
_root.yourobject._y
This will work anywhere as long as the object you are referring to exists on the frame.
I noticed BigFuzzyKitty from NG gave you the following script.
if(wall.hitTest(character._x, character._y, true)){
dostuff();
};
He probably codes with this script which is used instead of clip events on MCs
onEnterFrame= function(){
//code goes here
}
Since your code is now on the frame you no longer have to use _root.
You can also use for a specific MC
//for example
hero.onEnterFrame = function() {
_x++;
};
However, since you are coding on MCs you need to put in _root
//like this
if(_root.wall.hitTest(_x, _y, true)){
dostuff();
};
Now that you know how to put clip events on frames you may do so if you want to. It doesn't make any difference on performance and it can help organize your code.
Last edited by archmage (2008-08-10 01:32:05)
Offline
hmmm, I noticed these shapeflag scripts normally effect when they touch the little x in where u put it, is there any way to have it when it touches any of the object, not with the blue square hitTest thing
Offline
deatheater wrote:
hmmm, I noticed these shapeflag scripts normally effect when they touch the little x in where u put it, is there any way to have it when it touches any of the object, not with the blue square hitTest thing
No, flash doesn't work that way. Your best bet is to use several shapeflag hitTests to test all of the necessary parts.
Offline
fullmoon wrote:
Cool demo, but the example site tried to put malware on my computer
![]()
Really? I'll take off the link then.
Offline
I've tried a couple places and got no answers. SO now i will ask here:
1) How can i make something have "costumes". Would it just be a frame for each possibility and change accordingly?
2) I'm making Bomb Squad- should I use movieClips for the buttons or buttons for the buttons, and
3) If I use buttons for the buttons (you know, the things you click), how can I make it only switch (and stay) on 1 of the button clips if a certain condition is true?
Offline