Search found 20 matches
- July 17th, 2014, 12:02 am
- Forum: Everything
- Topic: Cool Idea - Implementation?
- Replies: 10
- Views: 5077
Cool Idea - Implementation?
So i had a cool idea to make the loading of keyed sprites much more efficient, the idea is that you create a surface of structs, each with an x,y pos and color. And instead of checking through to see which pixels should be skipped each time you draw, you instead only load the required pixels into th...
- July 14th, 2014, 1:24 pm
- Forum: Everything
- Topic: Problems with functions
- Replies: 4
- Views: 2212
Re: Problems with functions
so close, i was literally just typing it haha xD
But good to see you have managed to debug your own code, that is always good practice
But good to see you have managed to debug your own code, that is always good practice
- July 13th, 2014, 10:40 am
- Forum: Everything
- Topic: Very confused - Platformer
- Replies: 6
- Views: 2566
Re: Very confused - Platformer
Couldn't agree more, i know the code isn't perfect but i learnt a lot from it
- July 11th, 2014, 3:18 am
- Forum: Everything
- Topic: Very confused - Platformer
- Replies: 6
- Views: 2566
Re: Very confused - Platformer
Yeah i did that on purpose because for whatever reason the last column seemed to be rendering first and there was sort of overlap when the player was running left. That's just a temporary fix, i will come back to debugging it later, but thank you for pointing it out :D EDIT: nvm, i just realized wha...
- July 10th, 2014, 9:41 pm
- Forum: Everything
- Topic: Very confused - Platformer
- Replies: 6
- Views: 2566
Re: Very confused - Platformer
Ah of course, if I created multiple instances of the reference they would release the object and then try to do it again, that makes sense. Thanks for your help
- July 10th, 2014, 12:37 am
- Forum: Everything
- Topic: Very confused - Platformer
- Replies: 6
- Views: 2566
Very confused - Platformer
Ok, so instead of following the tutorials to build the platformer from chili. I decided i'd try to see how far i could get on my own first and then use the tutorials afterwards, so far it has gone pretty well but i have run in to a very confusing error. After creating a tile class i found that every...
- April 21st, 2014, 6:56 am
- Forum: Everything
- Topic: beginner - bit of fun
- Replies: 1
- Views: 1277
beginner - bit of fun
I was playing around with some scaling and rotation code i wrote a couple of days ago and then tried out the mouse input(which i hadn't used before). I am currently at beginner rank 16 and have no previous programming experience, please let me know what you think, only just starting programming and ...
- April 17th, 2014, 5:58 am
- Forum: Everything
- Topic: Rotation - Beginner
- Replies: 2
- Views: 1452
Re: Rotation - Beginner
There you go guys i fixed it up if you would like to use it, hold enter and use arrow keys to change rotation, hold space and arrow keys to change scaling and just arrow keys by themselves to translate.
- April 17th, 2014, 5:37 am
- Forum: Everything
- Topic: Rotation - Beginner
- Replies: 2
- Views: 1452
Re: Rotation - Beginner
Dont worry guys i solved it, in the 4th parameter for drawline i had cx-height instead of cy-height. But if you guys want a pretty simple rotation and scaling functions feel free to have a look
- April 17th, 2014, 4:21 am
- Forum: Everything
- Topic: Rotation - Beginner
- Replies: 2
- Views: 1452
Rotation - Beginner
Hey guys, im new to the tutorials and im currently at somewhere around tutorial 16 of beginner series but i have a pretty good background in maths and was trying to implement my own rotation and scaling functions. Scaling worked fine but im having a little trouble with my rotation function, it works...