Be a Supporter!

The Flash 'Reg' Lounge

  • 1,709,259 Views
  • 63,678 Replies
New Topic Respond to this Topic
Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to The Flash 'Reg' Lounge 2011-11-04 13:56:45 Reply

At 11/4/11 01:12 PM, PSvils wrote: I'm always skeptical of Adobe, but if Air3.0 really works that well, I will definitely give it a shot! (You don't need a developers key to just start testing, no?)

For iOS you need to be a registered Apple Developer ($99 per year) but you don't need any registration to publish for Android.


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-04 20:35:13 Reply

You can test in the simulator for free, but it doesn't simulate performance. It basically just makes your swf the size of an iphone screen and response to touch events from clicks.


BBS Signature
PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-04 21:20:42 Reply

I'm still working on my silly A* demo thing. This is just a branch of my EasyStar demo. I am leaving EasyStar untouched. I am trying to turn this into an actual game now. I put physics in... and then took them back out... Well. I decided I like it better without them.

I have been fooling around with GAE and I had two clients being able to see each others movement which was fine. I was doing some polling and it was pretty inefficient. I might try to mess more with that but I want to try to flesh out the game some more. Maybe put in some little monsters that you can fight or something.

The Flash 'Reg' Lounge


BBS Signature
Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to The Flash 'Reg' Lounge 2011-11-04 21:22:18 Reply

At 11/4/11 08:35 PM, PrettyMuchBryce wrote: You can test in the simulator for free, but it doesn't simulate performance. It basically just makes your swf the size of an iphone screen and response to touch events from clicks.

Even on the devices Mouse Events work. Tapping things will fire Mouse Down and Mouse Up events etc.


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-04 21:27:42 Reply

At 11/4/11 09:22 PM, Kirk-Cocaine wrote: Even on the devices Mouse Events work. Tapping things will fire Mouse Down and Mouse Up events etc.

Yes but I believe if you click in the simulator it will fire a TouchEvent.


BBS Signature
PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 02:16:24 Reply

At 11/4/11 09:20 PM, PrettyMuchBryce wrote: I was doing some polling and it was pretty inefficient.

Yuck! For realtime multiplayer?
You probably already know, but you gotta go socket server with that. Oh, and by the way, there are a few optimizations you can still do for your A* thing, like not using Array.sort(), Array.shift(), and Array.splice() (Not sure if you're doing that even though...), and also treating the Open list as more like an Object pool rather than an Array.
So instead of adding to the array, you do openList[ len] = newObject, where "len" is a separate variable denoting the arrays length (You manually increment it).
To delete an object from the array, you swap the object that's being deleted with the last element in the array, and decrement len by one.
Also, there's no point in sorting the entire array, since you only need the Node with the lowest F value. It's faster to for loop through it and find it that way than using Array.sort().

This is from an engine I had and a few recent tests to double check the performance costs. Array functions are little fuckers when it comes to performance sometimes, best avoid them.

P.

Plus it's my birthday! :O
Cryoma
Cryoma
  • Member since: Dec. 18, 2007
  • Offline.
Forum Stats
Member
Level 15
Musician
Response to The Flash 'Reg' Lounge 2011-11-05 03:38:54 Reply

At 11/4/11 09:27 PM, PrettyMuchBryce wrote:
At 11/4/11 09:22 PM, Kirk-Cocaine wrote: Even on the devices Mouse Events work. Tapping things will fire Mouse Down and Mouse Up events etc.
Yes but I believe if you click in the simulator it will fire a TouchEvent.

Ew.
Hey does flash support multitouch yet?

Gimmick
Gimmick
  • Member since: Aug. 20, 2008
  • Offline.
Forum Stats
Member
Level 27
Programmer
Response to The Flash 'Reg' Lounge 2011-11-05 06:31:34 Reply

At 11/5/11 02:16 AM, PSvils wrote:
Plus it's my birthday! :O

You better be telling me the truth, because I created a thread for that.


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies

BBS Signature
PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 08:05:03 Reply

At 11/5/11 06:31 AM, Gimmick wrote:
At 11/5/11 02:16 AM, PSvils wrote:
Plus it's my birthday! :O
You better be telling me the truth, because I created a thread for that.

:O

Thanks brosef! :) First birthday thread I've ever had!

Now back to my neon snake, and a new 8bit game I started last night while "mentally augmented", but it's turning into a 2D minecraft from birds eye view kinda thing.

What's everyone up to currently?

Gimmick
Gimmick
  • Member since: Aug. 20, 2008
  • Offline.
Forum Stats
Member
Level 27
Programmer
Response to The Flash 'Reg' Lounge 2011-11-05 08:13:08 Reply

At 11/5/11 08:05 AM, PSvils wrote: What's everyone up to currently?

I can't say for others, but I'm pretty much bored right now. I'll try to work something in flash, yadda yadda, and stuff like that.


Slint approves of me! | "This is Newgrounds.com, not Disney.com" - WadeFulp
"Sit look rub panda" - Alan Davies

BBS Signature
MCarsten
MCarsten
  • Member since: Dec. 30, 2009
  • Offline.
Forum Stats
Member
Level 21
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-05 08:14:01 Reply

I now have 1,000 posts! :D

PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 09:06:35 Reply

At 11/5/11 08:14 AM, Spysociety wrote: I now have 1,000 posts! :D

:/

Looks more like 8 to me...

PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-05 14:51:57 Reply

At 11/5/11 02:16 AM, PSvils wrote:
At 11/4/11 09:20 PM, PrettyMuchBryce wrote: I was doing some polling and it was pretty inefficient.
Yuck! For realtime multiplayer?
You probably already know, but you gotta go socket server with that. Oh, and by the way, there are a few optimizations you can still do for your A* thing, like not using Array.sort(), Array.shift(), and Array.splice() (Not sure if you're doing that even though...), and also treating the Open list as more like an Object pool rather than an Array.
So instead of adding to the array, you do openList[ len] = newObject, where "len" is a separate variable denoting the arrays length (You manually increment it).
To delete an object from the array, you swap the object that's being deleted with the last element in the array, and decrement len by one.
Also, there's no point in sorting the entire array, since you only need the Node with the lowest F value. It's faster to for loop through it and find it that way than using Array.sort().

Hey those are some really good tips. thanks. Yeah i know tcp is the way to go, but I haven't played around with that much. I've never written my own socket server before. GAE has this cool thing called the channel API that can push messages to javascript, which can then call a method in your swf. This way you don't have to poll the server. I was thinking I could do some sort of fake realtime wherein it just gives you everything on screens current position every 250ms or so and then pathfinds them there. So it may not be completely synced, but as far as the player is concerned it looks like it is.


Plus it's my birthday! :O

Happy Birthday! :D


BBS Signature
Xeptic
Xeptic
  • Member since: May. 12, 2005
  • Offline.
Forum Stats
Member
Level 32
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 16:47:48 Reply

Hey the re-design looks pretty rad!

Sarcasm.

BBS Signature
funkycaveman
funkycaveman
  • Member since: Jun. 10, 2008
  • Offline.
Forum Stats
Member
Level 23
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 20:14:32 Reply

At 11/4/11 01:56 PM, Kirk-Cocaine wrote: For iOS you need to be a registered Apple Developer ($99 per year) but you don't need any registration to publish for Android.

Isn't it $25 to publish on the market? I think thats a perpetual unlimited apps?

Sandremss128
Sandremss128
  • Member since: Aug. 22, 2009
  • Offline.
Forum Stats
Member
Level 11
Programmer
Response to The Flash 'Reg' Lounge 2011-11-05 20:31:43 Reply

Who cares about money anyway?
There is enough money for everybody on the world ok? Its about the things you do.

PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-05 22:22:22 Reply

At 11/5/11 03:38 AM, Cryoma wrote:
At 11/4/11 09:27 PM, PrettyMuchBryce wrote:
At 11/4/11 09:22 PM, Kirk-Cocaine wrote: Even on the devices Mouse Events work. Tapping things will fire Mouse Down and Mouse Up events etc.
Yes but I believe if you click in the simulator it will fire a TouchEvent.
Ew.
Hey does flash support multitouch yet?

Yeah since 2 years ago. ;)


BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 22:43:43 Reply

Just tried out FlashDevelop. Why didn't you guys tell me it was 394872 times better than Flash Pro's coding environment?! Flash Pro will only be used for vector image editing now.

PrettyMuchBryce
PrettyMuchBryce
  • Member since: Mar. 17, 2001
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to The Flash 'Reg' Lounge 2011-11-05 22:55:20 Reply

At 11/5/11 10:43 PM, MSGhero wrote: Just tried out FlashDevelop. Why didn't you guys tell me it was 394872 times better than Flash Pro's coding environment?! Flash Pro will only be used for vector image editing now.

You were using Flash Pro for your IDE? oh jeeze X_X. Have you tried flash builder?


BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-05 22:59:57 Reply

At 11/5/11 10:55 PM, PrettyMuchBryce wrote: You were using Flash Pro for your IDE? oh jeeze X_X. Have you tried flash builder?

Nope, what does that do? And yeah...no one told me about all these fancy things

PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 07:50:49 Reply

At 11/5/11 10:59 PM, MSGhero wrote:
At 11/5/11 10:55 PM, PrettyMuchBryce wrote: You were using Flash Pro for your IDE? oh jeeze X_X. Have you tried flash builder?
Nope, what does that do? And yeah...no one told me about all these fancy things

FlashDevelop has made my tummy go yum for the past 3 years or so. I love it lots, and I'm really glad you found it!

I thought you would've taken the hint from all the "What program" threads and people suggesting FlashDevelop + Flex SDK ;)
Sandremss128
Sandremss128
  • Member since: Aug. 22, 2009
  • Offline.
Forum Stats
Member
Level 11
Programmer
Response to The Flash 'Reg' Lounge 2011-11-06 09:35:14 Reply

I like FD,
But it misses some key features like:
- auto-formatting code (duh its kind of basic)
- static code analysis (you can make obvious syntax errors now) and you need to compile the whole thing only to find out you got a semicolon missing or spelled some name wrong.
- search options, you cant find MouseEvent for example through normal Ctrl + Space (you need to do Ctrl + Space + Alt to find classes throughout the whole class tree)

But then again its being made by volunteers so you cant really cry about these things.
Its a great product and its free.

SantoNinoDeCebu
SantoNinoDeCebu
  • Member since: Jul. 20, 2002
  • Offline.
Forum Stats
Member
Level 32
Programmer
Response to The Flash 'Reg' Lounge 2011-11-06 10:43:11 Reply

While everyone is talking about FD et al.
I still use the Flash IDE to code in I guess 'cause I'm a bit lazy.
Though the only real quarrel I have with it is when the project gets big it takes ages to build since it rebuilds the entire thing each time. Does FD or flex have to do this as well or does it just need to compile the edited files (and all of its dependancies)?
Would be a big time save at the end of projects.

Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 11:24:38 Reply

It looks like I'm going to have to remake my half-finished game in something other than Flash, which has forced me to cut out feature after feature to solve performance issues.

I'm not really sure what else I can do--I want to include all of my ideas but Flash simply doesn't have the power for it. Would it be a good idea to cut everything troublesome out and release a "bare" version of it, then later release the full game, all features included, but programmed in Java/C++/etc?

What a sad day indeed :(
4urentertainment
4urentertainment
  • Member since: Aug. 1, 2008
  • Offline.
Forum Stats
Moderator
Level 13
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 11:59:27 Reply

At 11/6/11 11:24 AM, Archawn wrote: It looks like I'm going to have to remake my half-finished game in something other than Flash, which has forced me to cut out feature after feature to solve performance issues.

I'm not really sure what else I can do--I want to include all of my ideas but Flash simply doesn't have the power for it. Would it be a good idea to cut everything troublesome out and release a "bare" version of it, then later release the full game, all features included, but programmed in Java/C++/etc?

What a sad day indeed :(

Do you *really* need to do whatever it is you're doing that's slowing down the game so much?

I think it would be a good idea to indeed try and finish the game within flash's limitations, because y'know, having limitations always spawns creativity. You could perhaps try to replace some of the effects with pseudo versions of them that, while would hardly be as impressive, would give the same idea. Because really, when it comes to games I don't think it matters how the engine was made as much as that the player experience is a good one.

Also, the only problem with making an exe version of the game is distribution. You can easily get millions of players on your flash game, and monetize those as well. But for a downloadable game, things are much harder and you'll most likely always find a smaller audience.

Those are just my thoughts.

PSvils
PSvils
  • Member since: Feb. 3, 2010
  • Offline.
Forum Stats
Member
Level 01
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 12:44:49 Reply

At 11/6/11 11:24 AM, Archawn wrote: It looks like I'm going to have to remake my half-finished game in something other than Flash, which has forced me to cut out feature after feature to solve performance issues.

I'm not really sure what else I can do--I want to include all of my ideas but Flash simply doesn't have the power for it. Would it be a good idea to cut everything troublesome out and release a "bare" version of it, then later release the full game, all features included, but programmed in Java/C++/etc?

What a sad day indeed :(

Yeah, I'm really interested as to what exactly you're trying to do! There's always a faster way to do things! :)

4urentertainment
4urentertainment
  • Member since: Aug. 1, 2008
  • Offline.
Forum Stats
Moderator
Level 13
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 13:25:32 Reply

Also, I watched goats and cows getting decapitated today, what have you guys done?

There was blood, blood EVERYWHERE
Xeptic
Xeptic
  • Member since: May. 12, 2005
  • Offline.
Forum Stats
Member
Level 32
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 18:39:35 Reply

I watched Life in a Day on YouTube, great documentary. Coincidentally, it showed a cow getting slaughtered.


BBS Signature
MSGhero
MSGhero
  • Member since: Dec. 15, 2010
  • Offline.
Forum Stats
Supporter
Level 16
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-06 19:13:03 Reply

Any of you guys have experience with Q learning or SARSA or some other reinforcement learning algorithm? I'm looking into it for a new project, but I don't quite understand "states." Like how general does the state have to be or what should I include in it. It's gonna be a fighting game, maybe with combos and stuff.

Q learning is somewhere in this article...
http://www2.econ.iastate.edu/classes/eco n308/tesfatsion/LearnAlgorithms.LT.pdf

Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2011-11-07 14:26:31 Reply

At 11/6/11 11:59 AM, 4urentertainment wrote:
At 11/6/11 11:24 AM, Archawn wrote: It looks like I'm going to have to remake my half-finished game in something other than Flash, which has forced me to cut out feature after feature to solve performance issues.

I'm not really sure what else I can do--I want to include all of my ideas but Flash simply doesn't have the power for it. Would it be a good idea to cut everything troublesome out and release a "bare" version of it, then later release the full game, all features included, but programmed in Java/C++/etc?

What a sad day indeed :(
Do you *really* need to do whatever it is you're doing that's slowing down the game so much?

I think it would be a good idea to indeed try and finish the game within flash's limitations, because y'know, having limitations always spawns creativity. You could perhaps try to replace some of the effects with pseudo versions of them that, while would hardly be as impressive, would give the same idea. Because really, when it comes to games I don't think it matters how the engine was made as much as that the player experience is a good one.

Also, the only problem with making an exe version of the game is distribution. You can easily get millions of players on your flash game, and monetize those as well. But for a downloadable game, things are much harder and you'll most likely always find a smaller audience.

Those are just my thoughts.

The game is completely about the experience, which is why I'm hesitant to keep removing features/effects. Right now it's very BitmapData-intensive because I have a lot of special color transformations and various other visual effects. I feel like without these, the game loses its "atmosphere", which to me is very important. It needs to feel real and alive.

Potentially I could rework the entire engine one last time, but I've done that twice already and although it has improved performance quite a bit, the game still runs at 15fps on a majority of the computers I've tested it on. The target framerate was originally 30fps, but I lowered it to 24fps and if I go any lower I'm afraid I'm sacrificing too much of the game's beauty.

(one reason this happens is because my computer runs it at a solid 40fps with all the effects in place, so I've had a lot of trouble trying to improve performance without a shitty computer to test on)