GhostTrailRendering update

Today I finished prettying the ghosttrail linerendering code of mine in X-Moto. I decided to make a video to Youtube about it, enjoy! :)

New Code box

I added a new codebox css code to make kewl looking codeboxes, so that people can see and copy the codes I typo here more easily. I had some struggle with the css but luckily my dear friend helped me, as a reward I promised to advertize his site so here we go: Gamevault
Also if you click the box, the code gets highlighted and ready for copying action. ;)

P.S. Should work with firefox 3.5.2 and IE8 if you have problems with these browsers, let me know.

here is a demo:
s="Hello World"
Game.Message(s.."!") --prints Hello World!

Assembly Summer 09!


Yeah, the biggest LAN party in Finland if not in whole scandinavia. I had great time there, and slept like 5 hours in the 3 nights. I enjoyed the compos and great games of course, I didn't go to any seminars. One of the best things about Assembly is meeting guys (and why not girls 8)) with same interests, I met one guy from X-Moto and a group of CoolBasic programmers and the developer of CoolBasic! We had a group photo taken:

you can see me there on the back right with the grey hoodie.















I'm pretty certain that I will visit Assembly Summer 2010. Next year I try to pack my stuff so that I don't need to wait hours for the trolley. ;-)

Script Timer Patch Committed!

Yes, it finally got in to revision 2867. I only had to rewrite it 7 times, but now it's perfect! ;-)
The syntax changed only a little bit:

Game.StartTimer("name",[delay=100],[loops=0])

If you only give a name the timer is unpaused, or created with default values, if you provide more values they are used instead of defaults. loops=0 means infinite. If the timer exists, it is reseted.

Game.SetTimerDelay("name",delay)

To this you must give all parameters, otherwise it will give error. Sets the timer's delay without resetting it.

Game.StopTimer("name")

Guess what this does. You are right, it stops the timer, then it can be restarted with Game.StartTimer("name")

Well I hope some level makers find this patch usefull in creating great scripted adventures. ;-)
Also the C++ I made is well commented so someone who would want to help/learn C++ could even understand it. :)

Update on Script Timers!

The developer told me to change few things before it was good. Such as: Less functions, Dynamic vector for timers instead of an array. Well I did all that and sent the new version of the patch to the dev. The new syntax is slightly different. ;-)

timer={}--define timer
z1={}--and zone

function z1.OnEnter()
Game.StartTimer("timer",1000,2) --init the timer (name,delay,no_of_loops)
end

function timer.Tick(n)
if n==1 then
Game.Message("Now You DIE!!!") --first loop show msg
Game.StartTimer("timer",100) --change the timers delay to 1s
end --reason for another delay is that the player can see the message
if n==2 then --second loop
Game.KillPlayer()
end
end


The Functions are:
Game.StartTimer("name",delay,loops) --init/re-init
Game.StartTimer("name",delay) --set delay
Game.StartTimer("name") --unpause
Game.StopTimer("name") --pause

Script Timers, Here We Come!!

These last days I have been struggling with some C++ again, I wonder why I always do that...
But I got my code to compile and it even does what supposed! I set a mail to the developer with the patch file and some describtion of the patch, I hope he likes it enough to put it on the next release. Yes, of course I'm talking about X-Moto the free motocross game! The usage is pretty simple, but great things can be achieved with it. Here is an Example script:

timer={} --define timer
zone={} --and a zone

function zone.OnEnter() --when we enter the zone the curse is given!
Game.Message("BUAHAHHAHAHAA... You will die in 10 seconds!!")
Game.CreateTimer("timer",1000) -- init the timer and set the delay to 1000 hundreths of a second (10s)
return true
end
function timer.Tick(loops) --once the delay has surpassed the curse is executed :P
Game.KillPlayer()
end

My Canon EOS 450D


Yes it's finally mine! Took like 3 days to come, unbelievable. :D Now it is just a matter of learning the settings and getting my friend to go out with me to get some awesum images. ;-) The image is from a souvenir that I bought from Sweden to my sister. ;)