Imaging lingo #1

June 11, 2009

How to detect a clickable area (coloured grey in this instance) inside an image sprite (back color is black)

on mouseleave me
cursor 0
end

on mouseenter me
thename= sprite(me.spritenum).member.name
theimage=member(thename).image
end

on mousewithin me
thename=sprite(me.spritenum).member.name
pointinmember= sprite(me.spritenum).mapstagetomember(_mouse.mouseloc)
theimage=member(thename).image
thepix=theimage.getpixel(pointinmember)
if thepix=color( 128, 128, 128 ) then
cursor 3
else
cursor 0
end if
end

<3 imaging lingo!!111 ;D


Resizeable video

March 17, 2009

Code (director lingo)for resizing a Miaw video window (movie is set to fill window size at all times but you can also modify and scale as you like :) )

Works on resize, maximize, restore, minimize and everything else that’s a little bit of a laugh ;D

Video sprite is sprite (1)

Exit frame script

on exitFrame me

thewin=_movie.name
therect=window(thewin).rect
member(“stats”).text=”window: “&&therect && “vid: “&&string(sprite(1).rect) && string(sprite(1).top) && string(sprite(1).left) && string(sprite(1).height)&&string(sprite(1).width)
– sprite(1).rect=therect

sprite(1).top=0
updatestage
sprite(1).left=0
updatestage
go to the frame
end

——-movie scripts

on closewindow
thewin=_movie.name
window(thewin).close()
window(thewin).forget()

end

on movewindow
thewin=_movie.name
hideicons
– thewin=_movie.name
–  therect=window(thewin).rect
–  thewidth=therect.right – therect.left
–  theheight=therect.bottom – therect.top
–    sprite(1).loch=0
–  sprite(1).locv=0

–  sprite(1).height=theheight
–  sprite(1).width=thewidth

updatestage

end

on resizewindow
thewin=_movie.name
therect=window(thewin).rect
thewidth=therect.right – therect.left
theheight=therect.bottom – therect.top

sprite(1).width=thewidth*2
sprite(1).height=theheight*2
updatestage
sprite(1).loch=0
sprite(1).locv=0
updatestage

—-get window rect
—extract size
—set sprite size
—set sprite position

end

on zoomwindow
thewin=_movie.name
sprite(1).rect=window(thewin).rect
hideicons
sprite(1).top=0
updatestage
sprite(1).left=0
updatestage

end

Phew glad that’s over and done with.

Now to figure out why i hae to multiply by two to get the proper result when values are fine as they are … :/

Edit:

Ok i was stupid… You have to multiply by 2 IF and ONLY IF the regpoint of the video sprite is in the middle instead of 0,0 (sometimes things make too much sense to be able to understand them :p)


Favourite net fings

November 27, 2008

Props to AnlX for the find :)


xD

November 25, 2008

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.”


Chrome is the new black.

September 3, 2008

Yup Google chrome is the new black ;D

What is it ?

A new web browser made by google and released in beta yesterday.

I dont have much time to say why it kicks so much ass right now but will follow up with a new post later on today.

Meanwhile Just get the damn thing and see for yourself.

Mad props to the google pplz for thinkin outside of the box (as they have done for sooo many years ;D)

I don’t think i ve been so impressed by a web browser since i first used firefox… and opera/konqueror before that and some text based one before that.

For some reason it leaves that “safari” taste after using it for a while ;D

Ah forgot to mention…

It is cute as fuck!

And we all know cuteness can go a looooong way ;p

ok i ll shut up now xD

/laterz

Edit:

On second thought… and after 3 days of using it i came to the following conclussion:

It’s a web browser. A nice web browser with some very nice features. It’s not the best thing since bacon though… Bacon is still number 1.

Back to firefox it iz then ;D


Lonely :(

August 30, 2008

Kids in the Hall Pwnz :D

Cheers mate ;)


Double Compile

August 17, 2008

And today my dear geeks nerds dorks and general members of the braindead community (yes i do mean YOU! ;p) I have something special for you…

Battle programmer shirase using his mobile phone to perform a DOUBLE COMPILE!!!

Run noobs runnnnnn ;p

Pffft and they said programming can’t be cool ;p


Trolling guide (#1)

July 9, 2008

This is a repost of a guide I wrote a while ago on a private forum on how to troll n stuff :)
This one was written for a specific forum about the best mmorpg out there Anarchy online, but the general rules and methods of trolling are the same in any forum.
Read and learn :D

1.1 Introduction
Well i ve looked here and there and i still cant find a guide for one of the most fun and rewarding activities that this game presents us with:
Trolling the AO forums.
Its fora you life noob itz latin omg go back 2 [insert random 3rd world country] you [insert random number from 3 to 12] year old [insert random drug] addict.<— oldskool trolling :)
Notice the complete lack of punctuation. This is a sign of some1 who is knows that his audience will understand the point he is trying to make regardless of any speelllliiinng mistakes or errors. A group of well educated adults who decide to discuss serious matters on game related website.
1.2 Tools of the trade
1.2.1 Your brain
The most important tool you have to use is of course you superrior intelect. Dont be discouraged by others who try to stop you or dissagree with you:
a) its a sign of weakness
b) they re just doing it to get some of the attention they crave.
c) they are trying to sound important to hide the fact that indeed they are a 12 year old crack addict.
1.2.2 The translator
It is a well documented fact that you will have to “Sink to their level” in order to make your point heard.
Dont allienate yourself from your readers by using any words that can be complex and try to insert random spelling mistakes every now and then in order to make them feel you are one of them. :)
A very usefull tool can be found HERE!!!!
It looks like an easy tool to get started with but it can be really hard to MASTER
This previous fine example … might seem like some1 who does not have basic knowledge of the english language right ? Or DOES HE 0.o ?
1.2.3 The Moderators
Moderators are naturally your worst enemy. They delete posts because they cant realise the greatness of your work in its entirety. They are narrow minded 97 year old ladies who are pissed off because their favourite soap opera was cancelled and are taking it out on you by messing with your lifes work.
But … they can also be your friends ;)
Learn their schedule. Learn what ticks them off and what they might just let go. If you know their schedule then the rest is easy ;) Write whatever you like as if they were never gonna look at it. Go back and edit when they are doing their runs and change your post to something harmless, after they are done deleting / banning ppl for flaming your initial post go back and restore it to its original greatness. The mods wont go back to look at it again, you ve got a few ppl a warning or even better a ban and your post is back in its original state and ready for the history books for future generations.
1.2.4 Less is more
You dont need to write very long wall of text posts to please your fanbase. That is for the ones who arent even close to your level of intelectual accomplishment. Sometimes a single word is more than ENOUGH
(No offense to poor digi who has been trolled soooo much for posting 1 suggestion every 13.6 minutes)
words that can be used :
QFT, LOL, ROFL, L2P, L2R, N00B, ZOMG, WTF etc etc (First!, Ibtl and IBD are also usefull in some cases)
it is important to learn how to use these abbreviations and even more important when to use them.
Also helps if you make your own ABRVs2hlpPplzUndstndwtfUonAbt. :)
Mad props to deniska who managed to get a ban simply by using the words “I object!”.
Ah yes and remember be proud of your bans and infractions.
It means that there is someone out there who can appreciate your work. Think of them as rewards for your efforts.

1.2.5 Other trolls
Sometimes you dont even have to do your own trolling. Start a thread and your fellow trolls will jump to your assistance. When visiting the forums you can easilly spot your fellow trolls. Learn their names. Take a look and evaluate their work. Find which trolls fit your style and congratulate them for their skills by helping them when they start a flame war or smth.
How to comunicate with your fellow trolls ?
Only way trolls communicate with each other is by using thread titles as a pm service!!!
Dont send in game tells, dont send forum pms dont send emails or anything else because that would make you look like a lesser troll and your pms would be ignored.
An easy way to recognise your fellow trolls if you lack patience is to start a thread named
“Lets discuss moderation”
and in the body of the message write :
“I like it.”
This will get the attention of your fellow trolls who will jump in and state their opinnions ;)

this section looks complete so i will continue with the techniques and mechanics of advanced trolling.
Will continue this guide when i am bored at work again and aorc wont let me log ;)
Have fun and use the source wisely ;)


When calculating %s

July 9, 2008

remember to use float variables instead of using integers and wondering why it just wont work.

It also helps if you are not in retard mode when doing so ;p


Time/stupid on a typical working day.

June 26, 2008

Time / stupid graph

And there you have it…

I suppose this explains most of my “erratic behavior” in the mornings (and “erotic behavior” in the afternoons). :)

ps… values on the X axis are kg/sec. That will be all.