Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Gama11

Pages: [1]
1
chat / FlashDevelop QuickNavigate plugin
« on: Thu, Jan 3, 2013 »
I recently found out about this plugin for FlashDevelop called "QuickNavigate", which I find amazingly useful, so I thought I'd share it with you guys. I always found it annoying as hell that I have to switch to the mouse to open / switch between classes, with this plugin, all of this can be done with the keyboard and this much faster. Basically, the bigger the project you're working on, the more time you can save.

Another thing I found amazingly helpful is that you you Ctrl-click on a variable / function / class name to be taken to its declaration.

Screenshot from the original thread in the FD forums:


2
releases / FlxSlider.as
« on: Sun, Oct 21, 2012 »
GitHub repo of the demo-swf

So, when creating the demo swf for my FlxTrail class, I wanted to use sliders to be able change the variables conveniently. As it turned out, though, it's not possible to use the flash default ones within FlashDevelop. (plus, that would be an ugly solution as you'd have to use FlxG.stage etc)

I went ahead and created such a GUI element for flixel (extending FlxGroup). It's quite simple, but should work fine - which is also why the demo suite for my FlxTrail class is essentially also a demo swf for my FlxSlider class. There are two ways of using it, either you let the slider change the variable directly, or you assign a callback function which is called whenever the slider has been dragged for more complex stuff.

<a href="https://dl.dropbox.com/u/18627942/Demo.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">https://dl.dropbox.com/u/18627942/Demo.swf</a>

Also, feel free to leave feedback and suggestions, use the class yourself and / or customize it according to your needs. :D I commented most of the stuff, so you should be able to understand what's going on, plus, it's not all that complicated. IMPORTANT NOTE: This requires Photonstorm's FlixelPowerTools to work! I'm using the latest version (1.9), not sure if earlier version would work as well. I'm using the FlxMouseControl and FlxExtendedSprite classes.

FlxSlider.as

Click here for the source code

Edit Updated FlxSlider.as to v 0.2 - now also has the ability to play a sound when clicked and / or hovered over

3
releases / FlxTrail.as
« on: Tue, Aug 28, 2012 »
Apparently, this got ported to and integrated into Haxe-Flixel, which is pretty awesome. There's also a demo of it there showing off how awesome it works in conjunction with Tweening.

GitHub repo of the demo-swf

I have created a handy class to create trails that follow FlxSprites. (It's basically a FlxGroup which stores the positions and angles of a sprite in arrays. It then creates a number of Sprites whose positions & angles are updated after a set amount of frames) It's probably not all too fancy or even efficient performance-wise, but after I've enjoyed using the flixel framework so much, I figured it's about time to give something back to this great community. ;) I also created a little Demo swf which allows you to play around with the different paramters a bit.

In case you wanna see some more practical use of the class, my Ludum Dare #24 entry "viviDNA" heavily depends on this class.

<a href="https://dl.dropbox.com/u/18627942/Demo.swf" target="_blank" rel="noopener noreferrer" class="bbc_link bbc_flash_disabled new_win">https://dl.dropbox.com/u/18627942/Demo.swf</a>

Feel free to leave feedback and suggestions, use the class yourself and / or customize it according to your needs. :)

FlxTrail.as

Click here for the source code

Usage:

Code: [Select]
// Assigning a trail to a sprite called "ball". The trailimage is "ballImage", the number of sprites is "5", and the trails position will update every 2 frames.
// The first trailsprite was an alpha value of "0.6", "0.02" is sutracted from that alpha value for each subsequent sprite
var ball:FlxSprite = new FlxSprite(0, 0, ballImage);
var trail:FlxTrail = new FlxTrail(ball, ballImage, 5, 2, 0.6, 0.02);
add(trail);
add(ball);

// Sprite needs to move for you to see the trail
ball.velocity.y = 300;
ball.velocity.x = 300;

// Change the image of all trailsprites
trail.changeGraphic(newImage);

// Increase the length of the trail by 5 sprites
trail.increaseLength(5);

4
games / Grinning Cobossus
« on: Thu, Oct 20, 2011 »
 Hey guys,
I just released my first flash game, called "Grinning Cobossus", developed with flixel. It was sponsored by NG and did fairly well there.
It's a shmup that consists of a single epic boss battle.



http://www.newgrounds.com/portal/view/581906

Your feedback is appreciated! ;D

5
chat / #flixel needs more love
« on: Sat, Aug 27, 2011 »
Hey there,
flixel seems to be extremly popular and is used by a ton of devs. The #flixel IRC channel on freenode always only has about 20-30 chatters in it, though (and those are pretty much always the same regulars) - too bad, since it's great for devs to talk about game development (with flixel), get some feedback on early versions of your current project, solving problems / errors in "realtime" (if you'd post it in this forum you'd have to wait some time to get an answer and so on.
I think the problem here is that there isn't enough advertisment for the channel. Pretty much everything that has to do with flixel can be found in the "contribute" section - but what about the IRC channel? It badly needs to be mentioned there.  :)

What do you think about this? Have you ever heard of the #flixel channel?

6
help / [Solved] Black Screen upon playing sounds
« on: Thu, Jan 20, 2011 »
Each time I try to play a sound I embedded before with:

Code: [Select]
FlxG.playMusic(SoundShoot);
I get a black screen when starting the game. (It's showing the volume options though)

How could I fix this issue?

Pages: [1]