tag:blogger.com,1999:blog-9625271351586249482024-02-19T05:21:03.209+01:00TRILIGHT DEVELOPMENT BLOGUnknownnoreply@blogger.comBlogger15125tag:blogger.com,1999:blog-962527135158624948.post-77816957525313753972012-02-03T02:22:00.002+01:002012-02-03T02:22:59.875+01:00No longer in development.<div dir="ltr" style="text-align: left;" trbidi="on">
I'm sorry, but this project is no longer in development. :(</div>Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-962527135158624948.post-29335729961127405402011-10-12T21:08:00.002+02:002011-10-12T21:08:56.157+02:00Development Preview [Demo]<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
Now that the Battlefield 3 beta has ended, I once again found some time to work on the game. Progress is going slow, but steady.<br />
<br />
So, for my faithful blog readers I'm releasing a special demo.<br />
In this demo I've polished the game some more and finished the energy system.<br />
<br />
In the demo you will find:<br />
- <b>Bucking</b> (for Applejack): To use this, simply press 'e' to activate buck mode.<br />
When in buck mode, walk against a buckable object (e.g. a magic box) and Applejack will buck it!<br />
- <b>Destruction</b> (for Applejack): The same as the above, but you can also stand right next to it to buck the object.<br />
- <b>Energy system</b>: Each time a pony does a special action such as bucking or creating magic boxes, the pony's energy bar will deplete. Your energy will replenish itself over time.<br />
- Added and revised the <b>original "playground" map</b> to match the current Trilight art.<br />
- <b>Reduced size</b> by streaming the background music rather then embedding it in the flash file.<br />
<br />
<hr />
<h3>
Demo</h3>
<br />
<a href="http://student.nmct.be/michiel.de.mey/trilight/grim/">http://student.nmct.be/michiel.de.mey/trilight/grim/</a><br />
The demo is public, so feel free to share the link with other bronies that might be interested!<br />
<br />
And as always, feedback is always welcome!<br />
Got an idea, found a bug, want to make a suggestion? Feel free to comment.<br />
<br />
Your Brony<br />
Michiel<br />
</div>Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-962527135158624948.post-27534400884070919572011-10-02T18:32:00.000+02:002011-10-02T18:32:54.781+02:00Energy system [Preview]<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Took me too long to post this, you can blame Battlefield 3 for that.<br />
<br />
This time I've added an energy system to the game. Each pony has a certain amount of energy. Certain actions will drain the energy from your pony, such as sprinting, flying and drawing magic boxes. If your energy is below 100% it will automatically regenerate over time until your energy is full again.<br />
<br />
This allows better cooperation between ponies. This also prevents the player from using the same pony too much. You will probably have to switch between ponies more often now and that's a good thing.<br />
<br />
Screenshots below!<br />
<br />
<hr />
<h3>
<strong>Screenshots</strong></h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKnydgQyhRSRGTWGD3oioQZ7AFQECke11K2JXI7NTf81bu2So9Nsf-R_nn9_p2olaJJScLMAaVpuiGqIAyPqLqvu5jFpu85_EtXcfka99l-85iNjkbrxUl6OEImbufRILrzX794x2OOzGV/s1600/trilight12.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiKnydgQyhRSRGTWGD3oioQZ7AFQECke11K2JXI7NTf81bu2So9Nsf-R_nn9_p2olaJJScLMAaVpuiGqIAyPqLqvu5jFpu85_EtXcfka99l-85iNjkbrxUl6OEImbufRILrzX794x2OOzGV/s640/trilight12.png" width="640" /></a></div>
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8rCikcXGwnCG6VkDkQgrkxuOUHL-2oMKa_37Ltp6a1pr1B2rb_oZ2XQiCbjx5SPTHKO-iw06yLREq7db-Lx-hkqYrtxaB3zuSNzDd7zDtHq4wRNTcd9dzw0Hric5E3tkPPtKLmNbcDIo7/s1600/trilight13.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8rCikcXGwnCG6VkDkQgrkxuOUHL-2oMKa_37Ltp6a1pr1B2rb_oZ2XQiCbjx5SPTHKO-iw06yLREq7db-Lx-hkqYrtxaB3zuSNzDd7zDtHq4wRNTcd9dzw0Hric5E3tkPPtKLmNbcDIo7/s640/trilight13.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Yes, that's Trixie.</td></tr>
</tbody></table>
</div>
That's it for now. Stay tuned for more!<br />
Now, back to playing Battlefield 3.<br />
<br />
Your Brony<br />
Michiel</div>
Unknownnoreply@blogger.com4tag:blogger.com,1999:blog-962527135158624948.post-20565025471803532822011-09-25T15:48:00.001+02:002011-09-25T15:52:42.736+02:00Destruction [Preview]<div dir="ltr" style="text-align: left;" trbidi="on">
Today I'll be bringing some more interactivity and gameplay to the game. I wanted to post this <strike>yesterday</strike> earlier today, but when I looked at the clock it was already 5:30am. So yeah. Whilst trying to drag myself to bed I ran into my mother who apparently had to get up early to go to work. She wasn't happy.<br />
<br />
<a href="http://th00.deviantart.net/fs70/PRE/i/2011/090/b/4/bucket_buck_by_ryoki_fureaokibi-d3cvylx.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="220" src="http://th00.deviantart.net/fs70/PRE/i/2011/090/b/4/bucket_buck_by_ryoki_fureaokibi-d3cvylx.png" width="320" /></a>Today I'll be introducing destructible content. In terms of gameplay this can be a very interesting feature. It allows the game to slow the hero down in case you're in a time-based level or if you're running from something.<br />
<br />
But that's not all, I've made the choice to add physics to my destruction. Why? Because animating destruction is soooo 20th century. Nah, I mostly only want to prove myself capable of doing it. This game is all about challenge.<br />
<br />
Being a student, this is the perfect opportunity to prove and improve my skills. It took me a few hours to get it working, but I did it. And I'm proud of it.<br />
<br />
Enough with the text, on with the video!<br />
<br />
<hr />
<h2>
<strong>Video</strong></h2>
<div class="separator" style="clear: both; text-align: center;">
<object width="640" height="510"><param name="movie" value="http://www.youtube-nocookie.com/v/t1zNste1z6c?version=3&hl=en_GB&rel=0"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube-nocookie.com/v/t1zNste1z6c?version=3&hl=en_GB&rel=0" type="application/x-shockwave-flash" width="640" height="510" allowscriptaccess="always" allowfullscreen="true"></embed></object></div>
<br />
And in case anypony would be interested, I'll post my DebrisSpawner Class here. I'll probably extend this class further when needed.<br />
<br />
<h2>
<strong>Code</strong></h2>
<pre class="JScript" name="code">package mlp_effects
{
import Box2DAS.Common.V2;
import flash.display.DisplayObject;
import wck.BodyShape;
import wck.World;
public class DebrisSpawner
{
public function DebrisSpawner(numberofdebris:int, theWorld:World, theObject:DisplayObject)
{
trace("DebrisSpawner>>> Spawning debris.");
for (var i:int = 0; i < numberofdebris; i++)
{
var part:BodyShape = new Debris_part;
part.x = theObject.x + randomNumber(-theObject.width/2,theObject.width/2);
part.y = theObject.y + randomNumber(-theObject.width/2,theObject.width/2);
part.rotation = randomNumber(0,359);
part.categoryBits = 0x0004;
var scale:Number = randomNumber(10, 100)/100;
part.scaleX = scale;
part.scaleY = scale;
theWorld.addChild(part);
part.b2body.ApplyImpulse(new V2(randomNumber(7,14)/100, randomNumber(5,10)/100), part.b2body.GetWorldCenter());
}
trace("DebrisSpawner>>> Done spawning debris.");
}
private function randomNumber(low:Number=0, high:Number=1):Number
{
return Math.floor(Math.random() * (1+high-low)) + low;
}
}
}
</pre>
<br />
And when the object is destroyed, simply create a new DebrisSpawner
<br />
<pre class="JScript" name="code">new DebrisSpawner(15, parent as World, this as DisplayObject);</pre>
<br />
Stay tuned for more awesomeness!<br />
<br />
Your Brony<br />
Michiel</div>
Unknownnoreply@blogger.com2tag:blogger.com,1999:blog-962527135158624948.post-40966683065427386322011-09-22T20:46:00.000+02:002011-09-22T20:46:58.783+02:00Buck em' up, AJ!<div dir="ltr" style="text-align: left;" trbidi="on">
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghsrYUW_0l-73LDQwmV8cWPvvInSVEvsq6UIXoQmqfgjjJatiU64ixldDhDAGCSml2d9Psa0iYoWaOzrMxH5O4_o2giOShnXFDPRBTnB4-mEpYSBxY5LHlHFuTPLyat9B7l0uCjFUTR28y/s1600/applejack07.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="320" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEghsrYUW_0l-73LDQwmV8cWPvvInSVEvsq6UIXoQmqfgjjJatiU64ixldDhDAGCSml2d9Psa0iYoWaOzrMxH5O4_o2giOShnXFDPRBTnB4-mEpYSBxY5LHlHFuTPLyat9B7l0uCjFUTR28y/s320/applejack07.png" width="320" /></a></div>
It's Applejack time! I've done a few Applejack improvements.<br />
<br />
I've gotten quite a lot of comments about Applejack. I admit, she was't very helpful in the demo. But I got some great suggestions from the bronies.<br />
<br />
- UltimaShadow7 suggested that AJ should be able to jump further when galloping a while ago.<br />
This is now possible. Sorry, for the late implementation. Better late then never, right?<br />
<br />
- I've also got quite a few suggestions that AJ should be able to buck objects and send them flying. This too is now possible. It took me a few hours, but I figured it out.<br />
<br />
Some other improvements:<br />
- The zombie was so stupid, you could actually prevent him from moving any further by spawning a magic box. He's now a bit smarter and he'll now destroy your magic boxes. I've also slowed him down, he was moving way too fast.<br />
<br />
- Tweaked the magic sparkles animation so that you can now recognize the shape you're drawing.<br />
(removed the gravity effect) -Thanks Firebane<br />
<br />
<hr />
<h2>
<strong>Screenshots</strong></h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIUgmhvkCiBjYmBo0vvCi_yqJ3YuZYsZXZjkJ47mBwalZY91SLf_qMSBX8vTRDMCLP-lHmVhcVYP9w1HGnq9fm6EpN5YJHRwSGlHKOAGd1s4AvDHQGFCTmKfrHLtlHMRIdVe5oJv2rv3ui/s1600/trilight10.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgIUgmhvkCiBjYmBo0vvCi_yqJ3YuZYsZXZjkJ47mBwalZY91SLf_qMSBX8vTRDMCLP-lHmVhcVYP9w1HGnq9fm6EpN5YJHRwSGlHKOAGd1s4AvDHQGFCTmKfrHLtlHMRIdVe5oJv2rv3ui/s640/trilight10.png" width="640" /></a></div>
<div>
<strong><br /></strong></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinALpd_eRdfRXHH0gib1c2BkvJxlvG1Iw6JWLKH5ASUhM_VTw7r1IqB0xZmF9OSTD3WLdoeailRzID1p-J2UnaVZ2sH5o1Ghre5rXRY70Cmyyq7MhqL905eajaa-DWul9V8ptjcrcELO-b/s1600/trilight11.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinALpd_eRdfRXHH0gib1c2BkvJxlvG1Iw6JWLKH5ASUhM_VTw7r1IqB0xZmF9OSTD3WLdoeailRzID1p-J2UnaVZ2sH5o1Ghre5rXRY70Cmyyq7MhqL905eajaa-DWul9V8ptjcrcELO-b/s640/trilight11.png" width="640" /></a></div>
<div>
<br />
<br />
<br />
And it's been a while since I last posted some code, so have my Buck() function. ;)<br />
It activates when you press a button and a collision is found between AJ and a Dynamic BodyShape.<br />
<br />
So for now, you can press "e" to enter buck mode. When a collision happens, she will buck the object and send it flying. After that, buck mode is disabled again<br />
<br />
<pre class="JScript" name="code">public function buck(e:ContactEvent):void {
trace("Pony Buck>>> Contact!");
var theBody:BodyShape = e.other.m_userData as BodyShape;
if(theBody.type == "Dynamic") {
b2body.SetLinearVelocity(new V2(0 , b2body.GetLinearVelocity().y));
enableMovement = false;
movementState = MovementState.BUCKING;
gotoAndPlay("buck");
trace("Pony Buck>>> Body is dynamic, applying timer.");
var myTimer:Timer = new Timer(850);
myTimer.addEventListener(TimerEvent.TIMER, runTimer);
myTimer.start();
}
function runTimer(event:TimerEvent):void {
trace("Pony Buck>>> Timer ended, now bucking.");
var distance:Number = 25;
if(dir_left)
distance = -25;
else
distance = 25;
theBody.b2body.ApplyImpulse(new V2(distance, -10), theBody.b2body.GetWorldCenter()); //BUCK IT UP!
//Reset and stop timer, otherwise -> errors!
myTimer.stop();
myTimer.reset();
removeEventListener(ContactEvent.BEGIN_CONTACT, buck);
enableMovement = true;
trace("Pony Buck>>> Not listening to contact anymore. Done bucking.");
}
}
</pre>
<br />
The timer activates after 850ms, this is needed to make the push synchronize with the animation.<br />
<br />
So that's it for now. Stay tuned for more information. ;)<br />
<br />
Your Brony<br />
Michiel</div>
</div>
Unknownnoreply@blogger.com8tag:blogger.com,1999:blog-962527135158624948.post-83313802534790274322011-09-20T21:38:00.000+02:002011-09-20T21:43:18.248+02:00Trilight demo is a great success!<div dir="ltr" style="text-align: left;" trbidi="on">
All the support from you bronies really gave me a moral boost to continue with the game. I love this community!<br />
<br />
So, what's next for Trilight? Well, I'm currently working on a few new levels, including the Diamond Mines.<br />
<br />
But before I start working on the new levels, I'm going to do some more game tweaks. There are still some minor issues to be taken care of.<br />
<br />
And before I start posting screenshots, I'd like you guys to know that I'm not an expert at level design. So for now the levels will probably look a little "cheap". You can always help me out with that.<br />
<br />
<h2>
<hr />
<strong>Screenshots</strong></h2>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4kWrj4y9xdHY7Kufpg0hBbnUXPXqtKoN-392BCN6dnNPxH7QscCyz6s8BLFFfd5AXc1TRfGEY9r5tVvhq3srJZGbouImDSHm3hDdphrYjB9NarzagGKE2tCSIOiUWLWQBC2OdcFWmcewI/s1600/trilight8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4kWrj4y9xdHY7Kufpg0hBbnUXPXqtKoN-392BCN6dnNPxH7QscCyz6s8BLFFfd5AXc1TRfGEY9r5tVvhq3srJZGbouImDSHm3hDdphrYjB9NarzagGKE2tCSIOiUWLWQBC2OdcFWmcewI/s640/trilight8.png" width="640" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrrTK9AWY5Fx5jgn_8PzDCl5AKuG-cd3H_bC5_YKK5SD7SAbBfvztgR7BV_ApQpK2TuO1Q4qsSZZQjgPrKReAL9nrITQdkE6aSHqRVSKMzxwO-LHPKHYexS_oCSiOTYNgDuKytXM9c-2EG/s1600/trilight9.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjrrTK9AWY5Fx5jgn_8PzDCl5AKuG-cd3H_bC5_YKK5SD7SAbBfvztgR7BV_ApQpK2TuO1Q4qsSZZQjgPrKReAL9nrITQdkE6aSHqRVSKMzxwO-LHPKHYexS_oCSiOTYNgDuKytXM9c-2EG/s640/trilight9.png" width="640" /></a></div>
Everything is suddenly much easier when you can edit your levels on the fly in Flash.<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8Jk4KAZ2fYTHntIC4a_tLj2KSBwuy1_A2Mf-vXkYNMy7NHwGVMKTN5oK8ZQjutNUrgTqzSpOu7SRZbC5bzjBYVs-9pVEAlG0OHpGnjoaalV0Qip7B7_Jb3tYfK2PgVrHcChaTyutn3ban/s1600/editor2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8Jk4KAZ2fYTHntIC4a_tLj2KSBwuy1_A2Mf-vXkYNMy7NHwGVMKTN5oK8ZQjutNUrgTqzSpOu7SRZbC5bzjBYVs-9pVEAlG0OHpGnjoaalV0Qip7B7_Jb3tYfK2PgVrHcChaTyutn3ban/s640/editor2.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDzF7qDVQaw-cPXBD2NRTum8fF7TEqKmmPi6y-xWJSOqYnPDNBXncGemohvWwxfJFb6uhlLO5UONFto1e6895R5dbS8wvCEKDv0OTnAIkAVngrc_N28-7yNwss-w-Zl-haQMP59GypsM6m/s1600/editor1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="300" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDzF7qDVQaw-cPXBD2NRTum8fF7TEqKmmPi6y-xWJSOqYnPDNBXncGemohvWwxfJFb6uhlLO5UONFto1e6895R5dbS8wvCEKDv0OTnAIkAVngrc_N28-7yNwss-w-Zl-haQMP59GypsM6m/s640/editor1.png" width="640" /></a></div>
<br />
I'd love to work some more with the community; so if you are an artist, writer, composer, level creator, ... whatsoever and you'd like to contribute something to the game, please do so. You can always mail to de.mey.michiel[at]gmail.com. Be it some piece of art, a great idea, maybe a story or some music.<br />
<br />
Your Brony<br />
Michiel</div>
Unknownnoreply@blogger.com1tag:blogger.com,1999:blog-962527135158624948.post-62918452571637910632011-09-19T21:40:00.000+02:002011-09-19T22:01:31.416+02:00Trilight Revamp [Demo]<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Finally, after almost 2 months I'm ready to release my second demo to the public.<br />
<br />
Some new features since my previous post:<br />
- I've tweaked the movement a little so that you now move a little slower, thus you can jump less far.<br />
- I've also adjusted some GUI elements to fit the new game art style.<br />
- Added background music to increase the atmosphere.<br />
- Added a preloader.<br />
- Zombie pony experiment.<br />
<br /></div>
<h2>
<strong>Controls:</strong></h2>
<div>
- Use the ARROW keys, WASD or ZQSD to move your pony.</div>
<div>
- Use the scrollwheel or the numeric keys to switch between ponies.<br />
- R key will reset your pony the the nearest spawnpoint. (doesn't work in fullscreen)<br />
- ESCAPE will bring up the game menu.<br />
<br />
- As a unicorn you can draw a box in the game. (best drawn from the upper left corner)<br />
<br />
<br /></div>
</div>
<h2>
<strong>Demo:</strong></h2>
<b>Performance suggestions:</b><br />
- Best played on medium quality.<br />
- Intended for a resolution of 800x600,<br />
rescale your browser accordingly to increase performance.<br />
<br />
<strong>The link to the demo: </strong><a href="http://student.nmct.be/michiel.de.mey/trilight/grim/" target="_new">Clicky!</a><br />
<br />
Let me know what you think.<br />
<br />
Your Brony,<br />
Michiel</div>
Unknownnoreply@blogger.com11tag:blogger.com,1999:blog-962527135158624948.post-439022287775252652011-09-14T16:56:00.000+02:002011-09-14T17:03:56.578+02:00Trilight revamp [Huge update]<div dir="ltr" style="text-align: left;" trbidi="on">
<div dir="ltr" style="text-align: left;" trbidi="on">
Man, It's been almost a month since my last post. Well, I was kinda busy and I took a small break from this project.<br />
<div>
<br /></div>
<div>
But now I'm bored and I decided to start again. I wasn't completely satisfied with the direction Trilight was going. Now that I think about it, I never knew where I was going. I didn't have a story, no actual gameplay rules. As a matter of fact, I had nothing but an engine demo.</div>
<div>
<br /></div>
<div>
In the last month I've finally finished the fanfiction "Past Sins". Brilliant story.</div>
<div>
And I've also finished <a href="http://limbogame.org/" target=_new>Limbo</a>, which is an awesome Indie game. It's somewhat grimdark, spooky and mysterious.</div>
<div>
<br /></div>
<div>
I'm always somewhat influenced by what I see, read or hear.</div>
<div>
Now combine the mechanics I already had in Trilight, add some Past Sins references and on top use the grimdark setting from Limbo and you have yourself something completely unique.</div>
<div>
<br /></div>
<div>
I've spent the last few days tweaking and tuning Trilight and this time I'm satisfied with the result so far.</div>
</div>
<hr />
<h3>
Screenshots</h3>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-mCOy3pbd3-OAG8VZku6ZAriZJ-8n_EFog6V0ZIFQgTv1r7dcAOg_ZmJClKE6e2oP4i2TROhc4rITV3GYg5H4O-ga4utCetDqYY3CIVZDsoQlFSR6w7u2CuIumC1BQmlaaqgSgx_RdXFt/s1600/trilight_mainmenu.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg-mCOy3pbd3-OAG8VZku6ZAriZJ-8n_EFog6V0ZIFQgTv1r7dcAOg_ZmJClKE6e2oP4i2TROhc4rITV3GYg5H4O-ga4utCetDqYY3CIVZDsoQlFSR6w7u2CuIumC1BQmlaaqgSgx_RdXFt/s640/trilight_mainmenu.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8LrXqhO0bLnbvSy6TuaOE__uq7JknK7qObPKEChGASyCW4Qca5WvwlLvk-bj2JLo0EkxdrEMhhyphenhyphen-OKx6ZjdtiNlNTBf2DyTkPoajAhJKN8Tutj0VBaej5wpPCeFMStR1UZdX4SahG2bFr/s1600/trilight1.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi8LrXqhO0bLnbvSy6TuaOE__uq7JknK7qObPKEChGASyCW4Qca5WvwlLvk-bj2JLo0EkxdrEMhhyphenhyphen-OKx6ZjdtiNlNTBf2DyTkPoajAhJKN8Tutj0VBaej5wpPCeFMStR1UZdX4SahG2bFr/s640/trilight1.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp7AU__Jr4LQYbx3rqa6ByBqQshT1y_IiRyK9ctd3X1h6mn9q9o74z6qF0W85ydJAtP2jYhlhSR6bfFXGAudw3vHAubPfDCicURqq-PGk9dnKI4IpKlUiLsy1_a2V3e3PFpS5QN6IaE5Bl/s1600/trilight2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgp7AU__Jr4LQYbx3rqa6ByBqQshT1y_IiRyK9ctd3X1h6mn9q9o74z6qF0W85ydJAtP2jYhlhSR6bfFXGAudw3vHAubPfDCicURqq-PGk9dnKI4IpKlUiLsy1_a2V3e3PFpS5QN6IaE5Bl/s640/trilight2.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEJ5htoNDYgegf88rMLnyE2jNfSVMo4Y_DszX5SVagEjdsDR1uhj91rbtWjhPs2Tm6tldk1ZrNTd6HftzJZQxy6_apIS-eRvYOzZYX4zL-t-xbGX9hXv7it2hT82dwz3J3KY_ASw8PGG_B/s1600/trilight3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEJ5htoNDYgegf88rMLnyE2jNfSVMo4Y_DszX5SVagEjdsDR1uhj91rbtWjhPs2Tm6tldk1ZrNTd6HftzJZQxy6_apIS-eRvYOzZYX4zL-t-xbGX9hXv7it2hT82dwz3J3KY_ASw8PGG_B/s640/trilight3.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCDDzCNvMAthyphenhyphenQ8E097D0lhiaMnXm2108s4v26A2pJSA6v7T6Dh_kkl8eXCy38YtpdrkTyha6zf-Y7Tb-SOYf_4tM56_xtmZJaKMAJP5EGIn6xa9mi0R7U6FkRnC48UFopmWn0zZY_FA_X/s1600/trilight4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCDDzCNvMAthyphenhyphenQ8E097D0lhiaMnXm2108s4v26A2pJSA6v7T6Dh_kkl8eXCy38YtpdrkTyha6zf-Y7Tb-SOYf_4tM56_xtmZJaKMAJP5EGIn6xa9mi0R7U6FkRnC48UFopmWn0zZY_FA_X/s640/trilight4.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhytbYsFVEz-IEljxmkvaR03F-A_YVX7yGounO5qdhj-seRQFg-mtcZmONEcETlLfW5JfHNI1uZsOtx2YQQymLkyzcGA6sIQSbiOVOxXrWqjNT2SLDtq2P4Gd6qekpnLnGE8SFTbvuvOwpF/s1600/trilight5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhytbYsFVEz-IEljxmkvaR03F-A_YVX7yGounO5qdhj-seRQFg-mtcZmONEcETlLfW5JfHNI1uZsOtx2YQQymLkyzcGA6sIQSbiOVOxXrWqjNT2SLDtq2P4Gd6qekpnLnGE8SFTbvuvOwpF/s640/trilight5.png" width="640" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS4jcdidXji851fMNWtD-MlLMyAqNsxE_-4t4zT7xBcAJgBSnUr6tZJ3rKwO1u-JjwwtgHUuVbE1qRgsy-TedYbOxTiHkaEF756sCDcTLNXZLMhCn1Jgr7xWqp5t_060FAw5f6icBYLISI/s1600/trilight6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS4jcdidXji851fMNWtD-MlLMyAqNsxE_-4t4zT7xBcAJgBSnUr6tZJ3rKwO1u-JjwwtgHUuVbE1qRgsy-TedYbOxTiHkaEF756sCDcTLNXZLMhCn1Jgr7xWqp5t_060FAw5f6icBYLISI/s640/trilight6.png" width="640" /></a></div>
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg74HpkwEZqAJluXKGljDzj-2NSLUMJcBk4L_KRudiAJoTAWxqVvWE67H4TISrgq8lDCX8iACA537UM7wxTWjGKmXf9cP2bQ7tPtyqmPISmkYMTG40G-ZyYl_6lAbAiT9ZgjGxEcSbS6e89/s1600/trilight7.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="480" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg74HpkwEZqAJluXKGljDzj-2NSLUMJcBk4L_KRudiAJoTAWxqVvWE67H4TISrgq8lDCX8iACA537UM7wxTWjGKmXf9cP2bQ7tPtyqmPISmkYMTG40G-ZyYl_6lAbAiT9ZgjGxEcSbS6e89/s640/trilight7.png" width="640" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;"><span class="Apple-style-span" style="font-size: small;">Poor Twilight.. she really cares about her.</span></td></tr>
</tbody></table>
<br />
<br />
<br />
<br />
My only concern is that I might have used too many effects, causing the game to lag a little.<br />
It plays fine on my pc (30fps on high), but that's because I have a Core i7 processor and 8Gb of RAM.<br />
<br />
The player will probably be able to disable some effects to increase performance in the game.<br />
<br />
Anyway, that's it for now.</div>
Unknownnoreply@blogger.com6tag:blogger.com,1999:blog-962527135158624948.post-25731989134048283352011-08-17T18:06:00.000+02:002011-08-17T18:06:49.331+02:00Dialogue tweaks & NPC's [COMPLETE]<div dir="ltr" style="text-align: left;" trbidi="on"><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSdgLHJ-Y-TwfSzSpLT62Cq-hknd1V5FpCrD4CUlbfJ8CE1kqeEpwqBiYscxVkJtdSjz4MCFmHTZqiWWmysguZd1ZEoTNqo21YPQ14N_LjBEIbPON2QV5IbIdBob-d4Mm3p_dak_YnvtA/s1600/dialogue_complete.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="429" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSdgLHJ-Y-TwfSzSpLT62Cq-hknd1V5FpCrD4CUlbfJ8CE1kqeEpwqBiYscxVkJtdSjz4MCFmHTZqiWWmysguZd1ZEoTNqo21YPQ14N_LjBEIbPON2QV5IbIdBob-d4Mm3p_dak_YnvtA/s640/dialogue_complete.jpg" width="640" /></a></div><br />
It's been a while since I last posted, but that's mainly due to the fact that I started working this month and I now have less time to spend on the game.<br />
<br />
But it's still being worked on, don't panic. ;)<br />
<br />
Now on to the interesting stuff!<br />
<br />
<b>In-game Screenshots after the break!</b><br />
<br />
<a name='more'></a><br />
<hr />Features:<br />
<div><br />
<div>- Easier dialogue management</div><div>- Exclamation mark when a dialogue is available</div><div>- Basic (raw) NPC movement</div><div><br />
</div><div>In-game screenshots:</div><div><h2>You know what? Nevermind!</h2></div><div><b>Have a preview instead!</b></div><div><a href="http://student.nmct.be/michiel.de.mey/trilight/beta/">http://student.nmct.be/michiel.de.mey/trilight/beta/</a></div><div><br />
</div><div><br />
</div><div><br />
</div></div></div>Unknownnoreply@blogger.com5tag:blogger.com,1999:blog-962527135158624948.post-91543632532000726392011-07-29T17:46:00.000+02:002011-07-29T17:46:19.899+02:00Dialogue tweaks & NPC's<div dir="ltr" style="text-align: left;" trbidi="on"><div dir="ltr" style="text-align: left;" trbidi="on"><div class="separator" style="clear: both; text-align: center;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6x4ZUn9pCbl9_bCUly5qi8LSJ3yiDn6uGFeN-cnyAMJkr4WjFlvQZ5eikpYRONUuAP6l_5xPUZXzi1Ci7uJrN-PaCLPmWBOp7eEIeqL41ie5L1UyDSHDz4T2g7f7XsMvHSqPIvyR6KaWL/s1600/spitfire_trotcycle_right.gif" /></div><br />
Almost every game has npc's, and this one has them as well!<br />
Though they may not be as "smart" as other npc's in other games, they sure have their use.<br />
<br />
<b>More after the break!</b><br />
<br />
<a name='more'></a><br />
<hr /><br />
I've also tweaked the dialogue system a little bit so that you can attach dialogues to a certain npc.<br />
Npc's can also have a "restricted" pony. That means that the npc will only talk to the "restricted" pony.<br />
<br />
In addition to that, you can also use "[heroname]" in your dialogue to make the npc say the name of the current pony.</div><br />
Once I've finished the npc's I'll release a new public beta version.<br />
<br />
<h1 style="font-family: Calibri;"><strong>Some code</strong></h1><h2>Again, if you're not interested in how the game is made, this can be a boring part.</h2><pre class="JScript" name="code">//Create dialogue variable
var spitfireDialogue:Dialogue = new Dialogue("","",0x000000,0x000000,"",null);
var notdashDialogue:Dialogue = new Dialogue("","",0x000000,0x000000,"",null);
//Setup Dialogues
spitfireDialogue.addDialoguePony(new Spitfire, "Heya Dash.\nIt's been a while since we last met.", "spitfire00.png");
spitfireDialogue.addDialoguePony(new RainbowDash, "OHMYGOSHOHMYGOSHOHMYGOSHOHMYGOSHOHMYGOSH! It's Spitfire!", "rainbowdash00.png");
spitfireDialogue.addDialoguePony(new Spitfire, "I hope you still know how to fly because we're organising tryouts next summer and I want you to be ready for it.", "spitfire00.png");
notdashDialogue.addDialoguePony(new Spitfire, "I'm sorry [heroname], but I have to talk to Rainbow Dash", "spitfire00.png");
//Add dialogues to the NPC;
spitfire.attachDialogue(spitfireDialogue);
spitfire.attachRestriction(RainbowDash, notdashDialogue);
</pre>A few things have changed. Note that I've created a dialogue for the ponies that the npc doesn't want to talk to.<br />
<pre class="JScript" name="code">notdashDialogue.addDialoguePony(new Spitfire, "I'm sorry [heroname], but I have to talk to Rainbow Dash", "spitfire00.png");
</pre>The <b>[heroname]</b> will be interpreted and will output the name of your currently selected pony.<br />
<br />
<hr /><br />
The second thing that's changed (well, added actually) is the ability to attach dialogue to an npc.<br />
<pre class="JScript" name="code">spitfire.attachDialogue(spitfireDialogue);
</pre>This will add a normal dialogue to the npc without a "restricted" pony. When clicked on the npc the dialogue will show.<br />
<br />
However, if you wish to restrict the dialogue to a certain pony, you can use the second function:<br />
<pre class="JScript" name="code">spitfire.attachRestriction(RainbowDash, notdashDialogue);
</pre>This function requires 2 variables.<br />
- The first is the Class of the Pony you wish to restrict the dialogue to. (in this case it's Rainbowdash)<br />
- And the second variable is the dialogue you wish to show when it's not Rainbow Dash talking to the npc.<br />
<br />
I hope I'll be able to release the new public beta soon!<br />
<br />
Your brony<br />
Michiel De Mey</div>Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-962527135158624948.post-81173054494231108332011-07-25T18:51:00.004+02:002011-07-26T03:07:01.228+02:00Dialogue system [COMPLETE]<div dir="ltr" style="text-align: left;" trbidi="on"><div dir="ltr" style="text-align: left;" trbidi="on">So yeah, I've finished the dialogue system yesterday.<br />
(I wanted to post this yesterday, but Past Sins as well as Antipodes were updated and I couldn't keep myself from reading the new chapters!)<br />
<br />
Anyway, on to the interesting part of the post: Dialogue!<br />
<br />
I posted some previews a few days ago and after some useful comments I've decided to add faded cutiemarks to the background to make it look better. <b>Thanks Crystopher!</b><br />
<br />
<b>Some in-game screenshots and code after the break!</b><br />
<br />
<a name='more'></a><br />
<hr />Features:<br />
<span class="Apple-style-span" style="font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 15px; line-height: 21px;"><br />
- Background colour will match the personality of the pony<br />
- Three dots (...) in the corner indicate follow-up text<br />
- Cutiemarks to make the background look less dull<br />
- Typewriter effect on the text to make it look less static and boring</span><br />
<br />
In-game screenshots:<br />
<h2>Spitfire tutorial preview:</h2><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKW418mIplGAAklQALhf1G5qcI4Z0BmoG7XVxkMw4cQwk4Yv0J1kf3d5ipzY3yvBUyEqo6Hfxw1G9vTYnQYBmKvINmuiyWtp-yWf-o9HS1n_7-bOaNL0ZyMdpY4DkAL0rBgZRvUSoynYXB/s1600/dialogue_ingame5.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKW418mIplGAAklQALhf1G5qcI4Z0BmoG7XVxkMw4cQwk4Yv0J1kf3d5ipzY3yvBUyEqo6Hfxw1G9vTYnQYBmKvINmuiyWtp-yWf-o9HS1n_7-bOaNL0ZyMdpY4DkAL0rBgZRvUSoynYXB/s640/dialogue_ingame5.png" width="640" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzFPGZQQJisefja0-FitjNfTkoLxFpIImdPxKZEJem0iVHfMwMk2ayGQ4662FthhQVj2s8CKzmbmOFQesC5p0PN-fyVIrOzIMDiFZtgP6WHFV-M7o1W8cv1OTh4QC8ZAc4jCBSaORIvjxT/s1600/dialogue_ingame6.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhzFPGZQQJisefja0-FitjNfTkoLxFpIImdPxKZEJem0iVHfMwMk2ayGQ4662FthhQVj2s8CKzmbmOFQesC5p0PN-fyVIrOzIMDiFZtgP6WHFV-M7o1W8cv1OTh4QC8ZAc4jCBSaORIvjxT/s640/dialogue_ingame6.png" width="640" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij-RuZAN-eqHiPxOtaqgehSKco_xE2CBYpkc-h-5J0txAtDy_oiEGZZPaE0feJ98f0BrclgYTzgHugbKHVO7eZHV6eSCHrjziAQzkYnDHk5FF8oPlIXL0XND4lKwi2UxwibDbZGUjx3yOV/s1600/dialogue_ingame7.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij-RuZAN-eqHiPxOtaqgehSKco_xE2CBYpkc-h-5J0txAtDy_oiEGZZPaE0feJ98f0BrclgYTzgHugbKHVO7eZHV6eSCHrjziAQzkYnDHk5FF8oPlIXL0XND4lKwi2UxwibDbZGUjx3yOV/s640/dialogue_ingame7.png" width="640" /></a></div><br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpYBwusyLm39DDaVJjqkJ7EBRYZ0oMiHUvjE6f4oVZHmXlOVyJ0TYi0n1w3z9lu_SxkweXeCKah1P0dNUmvwRAoQQLWCYtBLSYy2n0p7qjJPxG4jKXf7WA-_BjCd2Qmo7ZeBrlHb0ZVIqA/s1600/dialogue_ingame8.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="429" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhpYBwusyLm39DDaVJjqkJ7EBRYZ0oMiHUvjE6f4oVZHmXlOVyJ0TYi0n1w3z9lu_SxkweXeCKah1P0dNUmvwRAoQQLWCYtBLSYy2n0p7qjJPxG4jKXf7WA-_BjCd2Qmo7ZeBrlHb0ZVIqA/s640/dialogue_ingame8.png" width="640" /></a></div><h2>Random Conversation:</h2><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2z6P_twvqGxNa5bJnH0w11GLjT25A7BKxyBk1DsRia2vFCzAMzDKCaHW1BBK86N7i-RvpUHuGe_x5FAxqRKRqsGu2_ys0rUlj1mPkrzHfcqXpDDsgYRvQVHxwVbMdAYS12y2DzSWuKq98/s1600/dialogue_ingame.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="429" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2z6P_twvqGxNa5bJnH0w11GLjT25A7BKxyBk1DsRia2vFCzAMzDKCaHW1BBK86N7i-RvpUHuGe_x5FAxqRKRqsGu2_ys0rUlj1mPkrzHfcqXpDDsgYRvQVHxwVbMdAYS12y2DzSWuKq98/s640/dialogue_ingame.png" width="640" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFQ_AdSaqdu50_qkcIdoJItvFBfmFtJ3RCWUm-5Uw046dn1pxhtjqmoXqnEn5Nbpxb0LJE_nRcs2mrALOUk3gnw-Kb-LgOWhdWVngoTqAQpLY-MCppp0C7oEaHJ1HiJqCcjZYrlxbtRBNw/s1600/dialogue_ingame2.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFQ_AdSaqdu50_qkcIdoJItvFBfmFtJ3RCWUm-5Uw046dn1pxhtjqmoXqnEn5Nbpxb0LJE_nRcs2mrALOUk3gnw-Kb-LgOWhdWVngoTqAQpLY-MCppp0C7oEaHJ1HiJqCcjZYrlxbtRBNw/s640/dialogue_ingame2.png" width="640" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigMEsj4ToTXtbddTu6XSkACNWm7ApCbTMFmcNP121Vj-aeg6vlKxggUxfjivQQQMJxqZ6zt2eAJ1ytS8uBBx7Rw8zhCwhIViG0S9veNExam1i6eqLe4SO6Zu0Qg_ZeCWg1H0XgnPAJKMTB/s1600/dialogue_ingame3.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigMEsj4ToTXtbddTu6XSkACNWm7ApCbTMFmcNP121Vj-aeg6vlKxggUxfjivQQQMJxqZ6zt2eAJ1ytS8uBBx7Rw8zhCwhIViG0S9veNExam1i6eqLe4SO6Zu0Qg_ZeCWg1H0XgnPAJKMTB/s640/dialogue_ingame3.png" width="640" /></a></div><br />
<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPNU-qWdIrVjmqNdewax5Qhl0wTcUCRKiuNQjk1ognLDTQaUtZy65buv3lqRL_hFwkyrcPdVwoW2BM8nRJsEc1lgbOFqOjNmPbvNekkjqvgPhOXEYybjB_gWzBti_-S6YorIgncAQrul48/s1600/dialogue_ingame4.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="428" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPNU-qWdIrVjmqNdewax5Qhl0wTcUCRKiuNQjk1ognLDTQaUtZy65buv3lqRL_hFwkyrcPdVwoW2BM8nRJsEc1lgbOFqOjNmPbvNekkjqvgPhOXEYybjB_gWzBti_-S6YorIgncAQrul48/s640/dialogue_ingame4.png" width="640" /></a></div><br />
<h1 style="font-family: Calibri;"><strong><br />
Some code:</strong></h1><b>(Boring stuff if you're not interested in how the game is made)</b><br />
<br />
Well, I've never actually made a dialogue system before and I couldn't really find a coded example on the internet. So I made my own system.<br />
<br />
First, I'd like to get something off my chest.<br />
<br />
*clears throat*<br />
<rant> FLASH! WHY U NO HAVE METHOD OVERLOADING?! </rant><br />
<br />
For those of you who don't know what method overloading is:<br />
<a href="http://en.wikipedia.org/wiki/Method_overloading">http://en.wikipedia.org/wiki/Method_overloading</a><br />
<br />
Anyway, that means I had to create a work-around. So that's the reason it took me so long to create the dialogue system.<br />
<br />
And for the code, it's quite simple actually.<br />
(5 lines of code to create the dialogue as seen on the in-game screenshots)<br />
<pre class="JScript" name="code">var dialoguepreview:Dialogue = new Dialogue("[TITLE]","[TEXT]",0xffffff,0x000000,"",null);
dialoguepreview.addDialoguePony(new TwilightSparkle, 'What does this mean? "Pillow Fight"?',"twilightsparkle00.png");
dialoguepreview.addDialoguePony(new Rarity, "Oh please. I am not at all interested in participating in something so crude.", "rarity00.png");
dialoguepreview.addDialogue("", "*Rarity hit by Applejack's pillow*", 0xFFFFFF, 0x000000, null, null);
dialoguepreview.addDialoguePony(new Rarity, "OH! IT! IS! ON!", "rarity_itison.png");
</pre></div>First you create your dialogue variable with some random values. (that's due to the work-around)<br />
And then you can easily add a next dialogue to the whole conversation by simply using the function <b>addDialogue()</b> or <b>addDialoguePony()</b><br />
<br />
Where's the magic? In <b>addDialoguePony()</b>.<br />
<br />
This simple method allows me to add a new dialogue that comes from a certain pony.<br />
<br />
For example:<br />
<pre class="JScript" name="code">dialoguepreview.addDialoguePony(new Rarity, "OH! IT! IS! ON!", "rarity_itison.png");
</pre>This function allows me to create a new dialogue for <b>Rarity</b>. She will say <b>"OH! IT! IS! ON!"</b> with <b>rarity_itison.png</b> as the image in the dialogue.<br />
<br />
Behind the scenes, my Dialogue class will map Rarity with a background colour, a font colour, a cutiemark, ...<br />
<br />
You can also see that I load the reaction images separately, they are not embedded in the flash file. This is because I want to keep the flash file as small as possible. And you're able to edit the reaction images without always having to re-upload the flash file.<br />
<br />
You can also create your own custom dialogue with the <b>addDialogue()</b> method.<br />
<br />
For Example:<br />
<pre class="JScript" name="code">dialoguepreview.addDialogue("TITLE", "TEXT", BACKGROUND COLOUR, FONT COLOUR, "REACTION IMAGE", CUTIEMARK);
</pre>Here you can specify the title, text, background colour, font colour, reaction image and the cutiemark.<br />
<br />
This example is used for the *Rarity hit by Applejack's pillow* dialogue.<br />
<br />
One last thing! Credits for the typewriter effect goes to:<br />
<a href="http://www.prosoxi.com/2010/05/28/flash-as3-typewriter-effect/">http://www.prosoxi.com/2010/05/28/flash-as3-typewriter-effect/</a><br />
<br />
I hope this has been somewhat interesting.<br />
<br />
Your Brony,<br />
Michiel De Mey</div>Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-962527135158624948.post-7029111878871917492011-07-21T02:33:00.007+02:002011-07-23T23:24:47.720+02:00Revising tutorials / Dialogue system<div dir="ltr" style="text-align: left;" trbidi="on"><br />
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRltrmV39R4ZS4aeTSnR-vKll_WLRiEHhGKQpIRbmrUz0wwe5X067SxUlazG-XhSTQTRy97B4D6YmttYWZg0sle1nX5j6CTHBdZC_xQi8cJ7sUfEemL1WMnc8RYaCn913ocb6u3KuCGwZ8/s1600/dialogue_preview.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRltrmV39R4ZS4aeTSnR-vKll_WLRiEHhGKQpIRbmrUz0wwe5X067SxUlazG-XhSTQTRy97B4D6YmttYWZg0sle1nX5j6CTHBdZC_xQi8cJ7sUfEemL1WMnc8RYaCn913ocb6u3KuCGwZ8/s1600/dialogue_preview.png" /></a><br />
Again 2:30AM, but I don't mind.<br />
<br />
So, I've been busy for a while trying to fix most of the bugs in the game.<br />
I wanted to fix them all in 1 day and get it over with quickly. Well I have to say that plan failed horribly.<br />
Some bugs were easily fixed, but other required me to rethink and recode some of the game logic.<br />
<br />
(See bugs and features report #1: <a href="http://trilightgame.blogspot.com/2011/07/bugs-and-features-report-1.html">http://trilightgame.blogspot.com/2011/07/bugs-and-features-report-1.html</a>)<br />
<br />
But now that most of them are fixed, I can finally continue with the actual game.<br />
<br />
More of that after the break!<br />
<br />
<br />
<a name='more'></a><br />
<hr /><br />
So, what's next? Well, some of the players have been complaining that there wasn't a "how to play".<br />
And they had every right to do so. Though there was a written "how to" on my website, but anyone hardly ever wants to read some boring text on how to play the game.<br />
<br />
So I'm going to try and make the tutorial levels more interactive. To do so, I'm going to have to start coding the dialogue system.<br />
<br />
I'm not sure what it will look like yet, so if anyone has any propositions feel free to post them.<br />
<hr /><h2>Dialogue preview</h2><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0UwucUD5en-NMn01xwfUzBe8M0kZCLBMJOZr70fzi_D_-x8kgUPCsaJd_C7tcfg23s1CxQ2KpwnJkstIECUxoKylgp6bHYejG54J7Xtp6Iev6USFWDRuxexRICoBP8z84uvccA8A5xNvu/s1600/dialogue_preview.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj0UwucUD5en-NMn01xwfUzBe8M0kZCLBMJOZr70fzi_D_-x8kgUPCsaJd_C7tcfg23s1CxQ2KpwnJkstIECUxoKylgp6bHYejG54J7Xtp6Iev6USFWDRuxexRICoBP8z84uvccA8A5xNvu/s1600/dialogue_preview.png" /></a></div><br />
<br />
<div class="separator" style="clear: both; text-align: center;"></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3dQSz22zMXAHyG1KA0A-tJYnStxpgDtOZe9Af3v1j-1k5JpZN7PwIHne6SJ65R-wXcNq0ykbsBvvWvdCi-xHR-CU2Nh1vY4Mf2u3xy5wpO2RuAe5VmAJmkl8Iz-7bFahqKwpYnwSQqO6j/s1600/dialogue_preview_applejack.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi3dQSz22zMXAHyG1KA0A-tJYnStxpgDtOZe9Af3v1j-1k5JpZN7PwIHne6SJ65R-wXcNq0ykbsBvvWvdCi-xHR-CU2Nh1vY4Mf2u3xy5wpO2RuAe5VmAJmkl8Iz-7bFahqKwpYnwSQqO6j/s1600/dialogue_preview_applejack.png" /></a><br />
- Background colour will match the personality of the pony.<br />
- Three dots (...) in the corner indicate follow-up text.<br />
- Cutiemarks to make the background look less dull<br />
<br />
<h2>With cutiemarks</h2><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRltrmV39R4ZS4aeTSnR-vKll_WLRiEHhGKQpIRbmrUz0wwe5X067SxUlazG-XhSTQTRy97B4D6YmttYWZg0sle1nX5j6CTHBdZC_xQi8cJ7sUfEemL1WMnc8RYaCn913ocb6u3KuCGwZ8/s1600/dialogue_preview.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiRltrmV39R4ZS4aeTSnR-vKll_WLRiEHhGKQpIRbmrUz0wwe5X067SxUlazG-XhSTQTRy97B4D6YmttYWZg0sle1nX5j6CTHBdZC_xQi8cJ7sUfEemL1WMnc8RYaCn913ocb6u3KuCGwZ8/s1600/dialogue_preview.png" /></a></div><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2-YDTjETZag70ywGrQSrbPK7raxTa2mvmZF_CNP1N9oPnw3nNvkMf5AitS7uhAiFShlHLfnMKCbf8QpNbGXatEc6twiSoRWO1KxX2_XOgihBH-DcaislZXjuYKlCOSEOmX8r2294SjDVk/s1600/dialogue_preview_applejack.png" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2-YDTjETZag70ywGrQSrbPK7raxTa2mvmZF_CNP1N9oPnw3nNvkMf5AitS7uhAiFShlHLfnMKCbf8QpNbGXatEc6twiSoRWO1KxX2_XOgihBH-DcaislZXjuYKlCOSEOmX8r2294SjDVk/s1600/dialogue_preview_applejack.png" /></a><br />
<br />
<div class="separator" style="clear: both; text-align: center;"></div><br />
</div>Unknownnoreply@blogger.com10tag:blogger.com,1999:blog-962527135158624948.post-39680510207319249832011-07-19T02:06:00.003+02:002011-07-19T02:08:21.970+02:00Bug fixing is tiresome<i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">Dear princess Celestia</span></i><br />
<i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"><br />
</span></i><br />
<i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">Today I've learned that bug fixing can be very tiresome.</span></i><br />
<i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">It's already 2am and I've barely had 4 hours of sleep.</span></i><br />
<i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">Spike just came to tell me to go to bed and I shall follow his advice.</span></i><br />
<i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;"><br />
</span></i><br />
<div style="text-align: right;"><div style="text-align: left;"><i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">Your faithful Brony</span></i></div></div><div style="text-align: right;"><div style="text-align: left;"><i><span class="Apple-style-span" style="font-family: Times, 'Times New Roman', serif;">Michiel De Mey</span></i></div></div>Unknownnoreply@blogger.com3tag:blogger.com,1999:blog-962527135158624948.post-3925413343157036832011-07-18T17:52:00.032+02:002011-08-07T17:22:01.881+02:00Bugs and Features: Report #1<div dir="ltr" style="text-align: left;" trbidi="on">I've been up 'till 4am and I hardly had any sleep due to the massive amount of emails I had to go trough. But now that I've read most of them (I've received 2 new beta requests while writing this), I've made a list of current bugs and feature requests.<br />
<br />
All of that after the break!<br />
<br />
<a name='more'></a><br />
<hr /><br />
<h1 style="font-family: Calibri;">Features:</h1><ul><li><strike>Add a "How To Play" to the game</strike> <b>Will be part of the improved tutorial levels</b></li>
<li>Considering using a Brony font for the game<br />
(http://www.equestriadaily.com/2011/03/new-pony-font.html)</li>
<li>Rainbowdash is kind of useless for now, as suggested she will probably be able to carry boxes over large gaps. (<b>Thanks Brandon!</b>)</li>
<li>When galloping, AJ should be able to jump farther then if she were walking <b>(Thanks UltimaShadow7)</b></li>
</ul><h1 style="font-family: Calibri;">Current bugs:</h1><ul><li>Improve the bridge</li>
<li>Pony hitbox seems to mirror randomly when changing to another Pony.<br />
(It's scary because it makes no sense.)</li>
<li>Overlapping frames on pony walking animations</li>
</ul><h1 style="font-family: Calibri;">Fixed bugs:</h1><ul><li><span class="Apple-style-span" style="-webkit-text-decorations-in-effect: none;"><strike>Game loses focus due to buttons on the gui (</strike><b><strike>Thanks AnnikaKJohnson)</strike> FIXED</b></span></li>
<li><strike>Fix the fps drop on the water wheel.</strike> <b>FIXED (FINALLY!)</b></li>
<li><strike>Improve the updraft from the wind</strike> <b>SLIGHTLY IMPROVED</b></li>
<li><strike>Holding "up" while floating shouldn't make you fall down</strike> <b>To make puzzles interesting, she will fall down.</b></li>
<li><strike>Prevent sliding on the platforms</strike> <b>PARTIALLY</b> <b>FIXED</b></li>
<li><strike>Need to improve shape detection.</strike> <b>FIXED</b></li>
<li><strike>Floating rarity (type set to static) when drawing</strike> <b>FIXED</b></li>
<li><strike>Rarity can jump infinitely when drawing a box under her</strike><br />
<strike> (see: http://www.youtube.com/watch?v=PIV95RFON8Y) </strike><b><strike>Thanks Storm Vision!</strike> FIXED</b></li>
<li><strike>Jumping against a box is sometimes bugged.</strike> <b>FIXED</b></li>
<li><strike>Misspelled "Only"</strike> <b>FIXED</b></li>
<li><strike>It's kind of hard to get out of the pool</strike> <b>FIXED</b></li>
<li><strike>Improve the pony collision box (corners can grab you)</strike> <b>FIXED</b></li>
<li><strike>Improve jumping</strike> <b>FIXED</b></li>
<li><strike>Need to add a reset button in case you got jammed</strike> <b>ADDED (Press R to respawn)</b></li>
<li><strike>Revise dragging objects</strike> <b>DRAGGING IS DISABLED FOR NOW.</b></li>
<li><strike>Wheel can be pushed from it's hinge</strike> <b>FIXED</b></li>
</ul></div>Unknownnoreply@blogger.com14tag:blogger.com,1999:blog-962527135158624948.post-17281383542778209062011-07-17T17:12:00.003+02:002011-07-17T17:57:16.035+02:00Trilight in BETA, now accepting beta testers<div class="separator" style="clear: both; text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVaPAdGKXDPWdIGuUyzxsvZcnMpi-z-suqbb8lPel8Ttrvz3hGJmk_j1Aw4J7T_iqyd5e2OY1n3q3N-_3mYyDcsB4iKxhc8LfiMQDcqYbrday0YF9E7gkzDG6DSeOAxLkNjyEZy5b1ZYkc/s1600/beta_preview.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;" target="_new"><img border="0" height="427" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVaPAdGKXDPWdIGuUyzxsvZcnMpi-z-suqbb8lPel8Ttrvz3hGJmk_j1Aw4J7T_iqyd5e2OY1n3q3N-_3mYyDcsB4iKxhc8LfiMQDcqYbrday0YF9E7gkzDG6DSeOAxLkNjyEZy5b1ZYkc/s640/beta_preview.png" width="640" /></a></div><br />
<br />
<br />
That's right! The game is now entering the beta phase. After a good month of programming, I'm finally ready to advance.<br />
<br />
And yes, I've finally named the game Trilight. I'm going to have to make a logo for that when I find the time..<br />
<br />
The core gameplay is mostly finished, some gameplay rules are already set but there is still a lot more to do! And with only one guy working on this (that would be me) things aren't exactly advancing at an incredibly fast rate. Mind you that this is just something I work on when I find the time. It's not like this is a professional project or something.<br />
<br />
Come to think of it, I still need a good story.. if there ever will be a story in the game.<br />
<br />
With that said, I'd like to thank <a href="http://grendopony.deviantart.com/">GrendoPony</a> for providing me with some great vectors for the game!<br />
<br />
<b>How to apply as a beta tester after the break!</b><br />
<a name='more'></a><br />
<br />
<hr /><br />
Anyway, on to the important part of this post. Since it's quite impossible for me to detect all possible bugs in the game, I will need a few ponies that would like to test new versions of the game from time to time. They will be notified by mail when a new public version is released. I would like to ask the beta testers then to try some of the new features that I've added to the game and report any bugs they may encounter.<br />
<br />
You may of course add your opinion of the game and even write suggestions!<br />
<br />
<b>If you wish to become a beta tester, please send an email to de.mey.michiel@gmail.com, with "Trilight BETA participant" as the title.</b><br />
<br />
<hr /><br />
I will keep everypony updated on the game in this blog. So if you want to follow my development, be sure to add this blog to your favourites. ;)<br />
<br />
Your Brony,<br />
Michiel De MeyUnknownnoreply@blogger.com3