This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - saintrunner
Pages: 1 ... 99 100 [101] 102 103 ... 119
1501
« on: November 20, 2011, 04:26:28 pm »
ok here you go, and I only pxl-tested the bottom left side of the sprite, but an example would be looking like this
:if getkey(2) and (pxl-test(X,Y+7)=0) :X-1->X
and then for the right one you would do it for X+8,Y+7 and this is only at his feet, so if the line was higher you would still go through it, but then your just pxl-test his whole side for all the getkeys, which will take a while but it will work!
you know how to jump right?
1502
« on: November 20, 2011, 04:17:36 pm »
one sec I have a game I made forever ago that uses this, but I let it go through lines, so let me fix it.
1503
« on: November 20, 2011, 04:15:32 pm »
just add pxl-tests to the sides and top of him at each of your getkeys like :if getkey(?) and pxl-test(?,?)=0
so basically saying, if your press left, and there is not a line there then move left, and if there is a line there do nothing. that should work
1504
« on: November 20, 2011, 04:09:15 pm »
ok I posted a mini little tutorial in the forums
1505
« on: November 20, 2011, 04:08:22 pm »
This is mainly for hellninjas Lets say you want to have a program that displays a sprite (stickman) and has various platforms for you to run and jump on! But how would you code this? PXL-TEST! lets say you have a sprite like the one below, how would you code this so your sprite stays on a line? heres how! :line(0,63,95,63) :if (pxl-test(X,Y+8) or pxl-test(X+5,Y+8)=0) :Y-1->Y just put this before your display graph, and where ever you display him on the screen, he will always fall until he hits a line! If you have any questions on jumping or I missed typed something, feel free to tell me!
1506
« on: November 20, 2011, 03:55:19 pm »
:(pxl-test(x+8,y+8) or pxl-test(x+3,y+8))
thats what you want, if your sprite has the bottom right foot on the bottom corner of the sprite box
edit:can I see your sprite?, what is the hexcode?
1507
« on: November 20, 2011, 10:20:09 am »
it could be released, but all it really needs is the block to fall of the edges.
1508
« on: November 19, 2011, 11:12:14 pm »
I had a friend show me (Thundermagnet). I first showed him how I learned to display stuff, and he showed me one of his games, and I was hooked! Haven't stopped coding yet!
1509
« on: November 19, 2011, 11:10:23 pm »
Haha yeah! AND WHATS WRONG WITH THAT! lol
1510
« on: November 19, 2011, 11:09:20 pm »
Well, ok then it just frustrated me, and I thought it was non-intended it made the second level really hard for me
1511
« on: November 19, 2011, 11:07:09 pm »
this is awesome!!!! you should make it into an entire game!!!
I think that is their intent! and if it isn't, SOMEONE BETTER FINISH IT! this is amazing! edit: whats next! call of duty for the calc!
1512
« on: November 19, 2011, 11:05:59 pm »
WELCOME!
1513
« on: November 19, 2011, 11:04:38 pm »
I have friends!
1514
« on: November 19, 2011, 11:00:05 pm »
yeah one sec
ok so in the screenie the whole time i'am on the platform, I can't jump! and then I go to the corner and I get stuck! I think it is because of your pxl-tests at the swords handle and the double lines, easy fix though! other then that it's awesome!
1515
« on: November 19, 2011, 10:56:14 pm »
so I think the game is absolutely amazing! but one thing, I think I was having a little bit of trouble with the jumping from ledge to ledge. Like it occasionally didn't let me jump, I think I know how to fix this, if I could see the code, and you don't have to credit me
Pages: 1 ... 99 100 [101] 102 103 ... 119
|