1
Discussion / Re: Post a Screenshot [Possible 56k warning?]
« on: September 03, 2008, 06:13:45 pm »
No, but the icons you see on the puzzle pieces have something to do with my lack of artistic ability.
A byte can contain more than 255. It's all about the way you choose to read it. But anyway, now let's say it's an octet, you can say it can only contain 256 different values. If these are between 0 and 255 or 20000 and 20255 can only be told by the programmer. Heck, s/he could even make the 256 different values go to random numbers.Woah now. Sure, you could use the byte as an address, or an index, or preform mathmatical operations on it to transform it into a bigger value, but the input byte itself is still a byte. It can only store 256 different values, because its a byte.
short iResult; //16bit long to hold result
iResult = nByteValue + 20000;
GM is a little different to most professional things, Fish.Woah, I didn't know how different it was. It's not neccesarily bad different, just way different different.
Fish, that wouldn't work. You would need to change it alot for it to be suitable for Game Maker.Are you saying that GM can't do arrays of sprites? Can't load sprites at runtime? Or that you can't think a way around your language of choice's limits?
set hudCurrentIcon = iconBow
Then, in the main hud drawing routine, instead of all that if...elseif... cr*p, do this:draw_sprite(hudCurrentIcon,-1, view_xview[0]+144,view_yview[0]+4)
Linux is also NOT Unix. Linux = Linux Is Not UnixYou're confusing this with GNU, which is an acronym. Linux is not an acronym. Linux is named after the person who developed it, Linus Torvalds.
Why can't people learn it is called GNU/Linux, and not Linux.
...It's justified if you actually make a GNU distribution of Linux ... the same way that I think that "Red Hat Linux" is fine, or "SuSE Linux" or "Debian Linux," because if you actually make your own distribution of Linux, you get to name the thing, but calling Linux in general "GNU Linux" I think is just ridiculous.
I realy Don't know what to do :'(Right, obviously you're confused. Girls are confusing. That's life. You've got to take it all in stride and move on as quickly as possible. The best cure for heartache is to get reattached asap. It's called a rebound, and it's awesome.
I know I should just forget her and find another girl , but I just can't do that with this guy around...
And I love her realy much, so forgetting her will be a problem -_-!
And my stomach feels like a rollercouster -_-! and it won't stop
just tell me what you think, any coment or advice will be good...
//define the item indexes...
define item_bomb = 0
define item_bow = 1
define item_boomerang = 2
define item_maxitems = 3
//create the item icon array
dim item_icons(0 to item_maxitems) as sprite
//load the icon sprites
set item_icons(item_bomb) = loadsprite("bombicon.bmp")
set item_icons(item_bow) = loadsprite("bowicon.bmp")
set item_icons(item_boomerang) = loadsprite("boomerangicon.bmp")
And then, in your draw routine, instead of doing if...elseif...elseif... ad infinitum, you could simply do this:draw_sprite(item_icons(global.selecteditem)),-1, view_xview[0]+144,view_yview[0]+4)
Fish, if he doesn't know how to use switch case he won't know how to use GM's surface functions.Who said I was talking about GM? This is a technique that would work well in every reasonable graphics API out there. =) Eventually, he'll figure it all out, and we'll all bow down to him as a programming god. Or not. Either way, at least now he knows a good way to speed up drawing his GUI. =)
(Don't hate me.)I hate you. Not for any reason, just because. Please die in a fire.