Be a Supporter!
Response to: Programmers/Artis ts opinion needed Posted July 11th, 2013 in Game Development

Thanks for the input dude!

Anyone else care to add their thoughts?


I've been teaching myself how to program in AS3 for a few months now and damn it's a lot of work! To be realistic, I know I won't be able to make a decent game for probably a year haha Until that day I will just keep learning and making little demos for myself to help me grasp the concepts I am learning.

NOW! Here is where I need your thoughts and opinions. How do you game developers make games? As in do you do everything solo (program and art) or do you programmers out there find an artist?

Even bigger question: If the game is intended to make money (no matter how small) would you split the profit 50/50? Or do you programs prefer a bigger cut for your labor? What about you detailed artists - will settle for nothing less than 50/50?

Ultimately I was just curious what you game developers did :) I programmed a little demo game the other day and my friend made the art. I jokingly said we will make money off it and split it 70/30 cuz of all the damn programming I'm having to do. I was joking but this made me really wonder what you guys do!

Response to: Syntax Error...Please help! Posted June 5th, 2013 in Game Development

At 6/5/13 11:40 PM, MSGhero wrote: You have a semicolon instead of a colon in that function definition. ;void instead of :void

Good eye! Thank you so much! :D


Ok so I've been learning some AS# coding through a book. In this particular chapter it's having me make a simple number guessing game. I copied the code exactly this far in the chapter but I am getting syntax errors.

Here's the coding:

package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;

public class Main extends MovieClip
{
var startMessage:String;
var mysteryNumber:uint;
var currentGuess:uint;
var guessesRemaining:uint;
var guessesMade:uint;
var gameStatus:String;
var gameWon:Boolean;

public function Main()
{
init();
}
function init():void
{
//Initialize variable
startMessage = "I am thinking of a number between 1 and 100";
mysteryNumber = 50;
guessesRemaining = 10;
guessesMade = 0;
gameStatus = "";
gameWon = false;
//Initialize text fields
output.text = startMessage;
input.text = "";
input.backgroundColor = 0xFFCCCCCC;
input.restrict = "0-9";
stage.focus = input;

//Add an event listener to the button
guessButton.addEventListener(MouseEvent.CLICK, onGuessButtonClick);
}
function onGuessButtonClick(event:MouseEvent):void
{
guessesRemaining--;
guessesMade++;
gameStatus = "Guesses Remaining: " + guessesRemaining + ", Guesses Made: " + guessesMade;
//Assign the input from the textfield to the currentGuess variable
currentGuess = uint(input.text);

//An if/else statement to process the input
if (currentGuess > mysteryNumber)
{
output.text = "That's too high." + "\n" + gameStatus;
checkGameOver();
}
else if (currentGuess < mysteryNumber)
{
output.text = "That's too low." + "\n" + gameStatus;
checkGameOver();
}
else
{
gameWon = true;
endGame();
}
}
function checkGameOver();void
{
if (guessesRemaining < 1)
{
endGame();
}
}
function endGame():void
{
if (gameWon)
{
output.text = "Yes, it's " + mysteryNumber + "!" + "\n" + "It only took you " + guessesMaded + " guesses.";
}
else
{
output.text = "I'm sorry, you've run out of guesses." + "\n" + "The correct number was " + mysteryNumber + ".";
}
}
}
}

^ignore the part just up there of +"."; it got scooted over cuz this forum text box is not long enough.

I have four syntax errors but I feel if I solve the first one it will fix the rest.
In the function checkGameOver the line that reads: if (guessesRemaining < 1) is getting the error.
The error is: 1084: syntax error: expecting identifier before if

I feel like this post was huge....sorry about that. Any help would greatly be appreciated.

Response to: External Sound Question 4 you Pros Posted May 8th, 2013 in Game Development

At 5/8/13 07:56 AM, nitokov wrote: i think you need sound channel variable,
and then soundch = sound.play()

like how? I tried this and it made no difference:

import flash.events.MouseEvent;
import flash.media.Sound;
import flash.net.URLRequest;
import flash.media.SoundChannel;

stop();

var music:Sound = new Sound();
var channel_0:SoundChannel = new SoundChannel();
music.load(new URLRequest("circus.mp3"));
music.play();

var mainButton:Sound = new Sound();
var channel_1:SoundChannel = new SoundChannel();
mainButton.load(new URLRequest("arrow.wav"));

start_btn.addEventListener(MouseEvent.CLICK, onStartBtn);

function onStartBtn(event:MouseEvent):void
{
channel_1 = mainButton.play();
gotoAndStop(2);
}


I am importing external sound files. I am able to get the music to play when it loads but when I try to click the button it won't play the sound. Never done things this way before so I need your guys help.

*Note* This is for a class and thus we have to do everything in frame (no AS files....yes I know it's not the right way to go about things).

import flash.events.MouseEvent;
import flash.media.Sound;
import flash.net.URLRequest;

stop();

var music:Sound = new Sound();
music.load(new URLRequest("circus.mp3"));
music.play();

var mainButton:Sound = new Sound();
mainButton.load(new URLRequest("arrow.wav"));

start_btn.addEventListener(MouseEvent.CLICK, onStartBtn);

function onStartBtn(event:MouseEvent):void
{
mainButton.play();
gotoAndStop(2);
}


Trying to make it so when the click the background (which is a static movieclip) that it will at +1 to the Dynamic text box (which is called: missText)

For example:

bg_mc.addEventListener(MouseEvent.CLICK, onBG);

function onBG(event:MouseEvent):void
{
missText.text = +1;
}

Now obviously that is some ugly code up there. I know I am missing something. I've tried stating missText as a variable and setting it's value to 0 but that failed. Ugh I must sound like a total noob right now to you guys. Any help would be appreciated.

*Note* It is for class project and I can't use an AS file (or packages). All coding must be in frame. Lame - I know.

Response to: Button help with AS3 Posted February 1st, 2013 in Game Development

Thank you guys for your input! I'm very grateful for the advice and the links to the tutorials!

Response to: Button help with AS3 Posted February 1st, 2013 in Game Development

At 2/1/13 08:44 PM, MintPaw wrote: Well first things first, if you're going to relearn AS3, relearn it correctly using a class based setup, not just code on keyframes.

I've noticed this in other threads when I was searching for an answer to my question... Anyone care to explain what a
"class based setup" is...?

Also...I'm still looking for an answer to my question....

Button help with AS3 Posted February 1st, 2013 in Game Development

Hey guys. I haven't touched Flash in about a year and recently have been getting back into it. Decided to try and learn AS3 this time around and I am having trouble.

I've used code to stop at a certain frame in the timeline. On this frame there is a button (I do know the basics of setting up a button). What I want is that when it is clicked to have text appear on the screen and when the user finishes reading it to click an "ok" button to make the text disappear.

I figure I need an add.eventListener for the mouse click but to listen for what? Do I make the readable text a MC? Would this MC already be in place but is transparent until add.eventListener is activated?

Trying to have all of this happen on the same frame because the only way I know around this is to have to add.eventListener jump to another identical looking frame except with the text present but I don't want to do it that way.

Any help would be greatly appreciated.

Thanks in advance.

Response to: I'm lost and need directions... Posted January 23rd, 2013 in Programming

oh haha I thought AS3 questions fell under programming forum. Thank you :)

But if AS3 doesn't fall under this programming forum then what kind of programming is this forum for?

Just curious haha

I'm lost and need directions... Posted January 23rd, 2013 in Programming

I haven't touched Flash in over a year. Recently decided to get back into it and this time around I decided that I would give action script 3 a chance....

Well this is embarrassing but I can't even figure out how to stop the timeline at frame 1 with AS3- let alone the other basics I knew in AS2.

I've searched google for tutorials in AS3 and the web is littered with all sorts.

Can anyone point me in the right direction of a basic tutorial? I do mean basic since I can't even stop the timeline in AS3 as mentioned above.

Thank you in advance.

Response to: Music guy... Posted March 12th, 2010 in Animation

I challenge you to make a MIDI that you would here in like an old RPG-Adventure game that comes off as epic

Response to: i have a little question Posted March 12th, 2010 in Animation

Illustrator

Response to: Should I make more animations? Posted March 12th, 2010 in Animation

If you make one I say go with something original instead of Sonic idea.

Nothing against Sonic, he rocks, just think it'd be better to go with an original idea. That'll show more of your talent.

Good luck dude!

Response to: Frames Per Sec Posted March 12th, 2010 in Animation

I've wondered this too over the years.

If it's possible it would only be possible through ActionScript.

Trying asking the Programming Forum maybe.

But if I had to guess, I'd say no :-/

Response to: I have some questions Posted March 7th, 2010 in Animation

At 3/6/10 10:15 PM, kaos503 wrote: Two questions:
1)i have seen a lot of animations frame by frame that loock "clean" i mean all the lines are in the good place, Do you know a technique to do draw like that ?cause all my draw that i make in flash seen wery weird whit all the lines in every where

Use the Onion Skin tool dude. And lots and lots of practice.

Good luck dude

Pencil Mode - smooth or ink? Posted March 7th, 2010 in Animation

So from what I gather from my last animation was that my art needed improvement. Don't blame them. I drew the characters with the Cirlce/Square and Line tool and just tweaked curves. I want to try an animation drawn with the Pencil tool ( I don't have a tablet) so I was wondering what you guys find better while using the Pencil tool - the Smooth option or the Ink option?

Let me know what you guys think

Thanks in advance guys!


How is it in your Flash game that you make it so Newgrounds shows/does the whole Medals thing?

I'm currently not attempting a game with medals but it's such a cool concept by here on Newgrounds that I was just curious how you do it.

It'd be nice to get an answer without any harsh comments in this post guys.

Thanks in advance guys.

Out of curiousity... Posted March 7th, 2010 in Programming

How is it that you program your game so that Newgrounds knows to set up the whole medals/awards thing?

I'm not making a game at the moment but would like to one day and I'm just really curious.

It'd be nice to get a response to this without any harsh comments please.

Thanks in advance guys

Response to: how do I delete my movie? Posted March 7th, 2010 in Game Development

At 3/6/10 11:11 PM, Siggeman wrote: lol, I just submitted a preview for my friend to watch, but now, I can't seem to delete the file from NG's.
How do I delete the movie?

Click My Account at top right then scroll down and on the left click Flash Submissions. You'll see your animation. Click remove.

Response to: I just want to... Posted March 5th, 2010 in General

Wow.

Thanks a lot guys.

By me saying I've used Flash for 6 years I didn't mean continuously. Just now and then.

I have a life.

Thanks for the feed back nonetheless guys.

I just want to... Posted March 5th, 2010 in General

Shout out a big THANK YOU!!! to everyone in the forums. You guys have helped me over the past 6 years learn Flash tips and techniques when I needed your help. Just came out with a new animation that I've worked on and off with over the past year and who knows how long it would have taken me without your guys help.

THANK YOU! :)

I just want to...

I've been waiting over an hour Posted March 4th, 2010 in General

I've been waiting over an have and fifteen minutes for my 1MB animation to load.

Is that normal?

Or should I cancel it and try to reload it?

Thanks in advance guys

Response to: 1gb... Posted March 4th, 2010 in General

At 3/4/10 11:02 PM, Iristorm wrote: I think you mean 1 MB (megabyte), not 1 GB (gigabyte). There's a huge difference.

Ah you're right I'm an idiot haha

Response to: 1gb... Posted March 4th, 2010 in General

At 3/4/10 11:02 PM, Iristorm wrote: I think you mean 1 MB (megabyte), not 1 GB (gigabyte). There's a huge difference.

No 1GB dude. I think if it was 1MB it would be uploaded onto the site by now.

1gb... Posted March 4th, 2010 in General

Uploading my second full animation and it's 1GB. I had no idea how long it took to upload 1GB.
My first animation I'm Just A Kidwas only 279kb haha

Response to: Submitting allow to resize??? Posted March 4th, 2010 in Game Development

At 3/4/10 12:53 AM, Magical-Zorse wrote: Nothing will go wrong if you allow it, but personally, I don't like it. I think it kinda ruins the way the game/movie should've been played/watched.

Thanks buddy

Submit allow resize??? Posted March 4th, 2010 in General

When you submit an animation you can choose whether the user can resize it (expand it) or not.

Does them expanding it cause any problems with the animation (like seeing outside of vCam) or anything?

Why wouldn't you want them to expand it?

Last time I submitted an animation this option wasn't available so I'm just curious.

Thanks in advance guys


When you submit an animation you can choose whether users can resize it (expand it) or not.

Can anything go wrong by allowing them to expand it? Like why wouldn't you want them to?

Last time I submitted it didn't have this option so I'm curious.

Thanks in advance guys