Author Topic: Seeker  (Read 32624 times)

0 Members and 3 Guests are viewing this topic.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #30 on: December 09, 2011, 03:55:55 pm »
I think making it curve is easier than without. (until you hit the ground :P)
« Last Edit: December 09, 2011, 03:56:03 pm by epic7 »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Seeker
« Reply #31 on: December 09, 2011, 03:57:15 pm »
yeah....collisions are confusing, cause I don't think you can just put pxl-test(x,y+8) and be done with it.
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #32 on: December 09, 2011, 03:59:04 pm »
In my game, I currently just check what the y coordinate is, but that'll have to be changed :P
* epic7 goes to experiment with some pxl-testing.
TO THE LAB!
« Last Edit: December 09, 2011, 03:59:17 pm by epic7 »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Seeker
« Reply #33 on: December 09, 2011, 10:23:11 pm »
fixed all my ram clear calc crash issues ( atleast that I know of :P ) And I have implemented gravity for realism!
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #34 on: December 09, 2011, 10:33:39 pm »
Did you figure out pxltesting? If so, I'd like to know how :P. I came up with an idea myself but it seems that the guy just snaps to the ground every time :P
« Last Edit: December 09, 2011, 10:33:56 pm by epic7 »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Seeker
« Reply #35 on: December 09, 2011, 10:44:02 pm »
here is an example:

[FFFFFFFFFFFF]->pic1
line(0,63,95,63)    //line at bottom of the screen
45->X
55->Y
-5->V      //velocity, change to adjust height
repeat getkey(15)
if getkey(4) or (pxl-test(X,Y+8)=0  //pressed up or nothing is below you
Y+V->V    //Keep in mind V is a negative, so it is like subtracting from Y, until it gets to zero....
V++      //This will get V to 0 so Y is added to
end
if pxl-test(X,Y+8)=1    //If you hit a line
-5->V   //resets your velocity so you can jump again.
end
pt-change(X,Y,pic1)
pause 50
displaygraph
pt-change(X,Y,pic1)
end


this gives the jump an arch

          _ _   
       _       _
      /          `   
    /              ` 
  /                  `
/                      `      .. sorta but not flat lol

rather then
           
      /`
    /    `
  /        ` 
/           `   
« Last Edit: December 09, 2011, 10:44:50 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #36 on: December 09, 2011, 10:46:51 pm »
Oh, I know how to do that. I was trying to do pixel testing when the player goes very fast, so it doesn't go right through the lines. But I think I'll probably be fine since it won't be moving at like supersonic :P

I might do a few if's depending on the velocity which shouldn't really exceed 512 at any point. 

Offline parserp

  • Hero Extraordinaire
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1455
  • Rating: +88/-7
  • The King Has Returned
    • View Profile
Re: Seeker
« Reply #37 on: December 09, 2011, 10:47:59 pm »
Oh, I know how to do that. I was trying to do pixel testing when the player goes very fast, so it doesn't go right through the lines. But I think I'll probably be fine since it won't be moving at like supersonic :P
lol I just did that with butts' velocity tutorial :D
(and it works too :P)

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #38 on: December 09, 2011, 10:48:56 pm »
More tutorials that I've never heard of!
* epic7 looks

Wait, where?
« Last Edit: December 09, 2011, 10:52:04 pm by epic7 »

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Seeker
« Reply #39 on: December 09, 2011, 10:51:48 pm »
lol oh yeah sorry...question.....256 inflation maybe? I just realized its going through the lines :P
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #40 on: December 09, 2011, 10:54:00 pm »
I'd die without inflation, so I've already been using it.
Inflation makes it easier.

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Seeker
« Reply #41 on: December 09, 2011, 10:54:39 pm »
did you get it to work? could copy and paste it into my code example above, so I can see it?
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #42 on: December 09, 2011, 10:56:10 pm »
What? My gravity works fine if you see the grappler topic, it's just the pxl testing I'm figuring out, but it shouldnt be so bad.

And I can't get code since I'm on my iPod and I'm going to collapse soon of sleepiness :P

Offline saintrunner

  • Custom Spriter: You ask it! I'll Make it!
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1787
  • Rating: +115/-11
  • Flogging Molly
    • View Profile
    • Jonny K Music
Re: Seeker
« Reply #43 on: December 09, 2011, 10:58:22 pm »
Oh no I get the gravity, It's just he jumps through lines except the the starting line
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES:

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Seeker
« Reply #44 on: December 09, 2011, 10:59:44 pm »
Ok. So pretty much, that is what I've been saying I've been figuring out :P