Author Topic: Grappler!  (Read 30287 times)

0 Members and 1 Guest are viewing this topic.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #45 on: November 25, 2011, 08:36:07 pm »
Me too D:

I actually need to wrap up robogun first. But that will be quick

ATTEMPTED GRAVITY:

100% FAIL.
CANT EVEN GET THE PLAYER TO MOVE!!

Errors found so far: 6

I want to try a tilemap soon.
« Last Edit: November 25, 2011, 09:09:13 pm by epic7 »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #46 on: November 25, 2011, 09:48:30 pm »
Moving left and right works.
At the button press, the guy jump and puts his arm out. Then it freezes.
I cant find what Im doing wrong.
If it all just stops, there must be something vital I'm missing or screwing up.
Code: [Select]
PROGRAM:HOOKSR
:.AAHOOK
:DiagnosticOff
:[1028103854382828]➔Pic1
:[102A123C50B82828]
:[FFFFFFFFFFFFFFFF]➔Pic2
:1➔R−1➔H➔Q➔B➔P
:256➔X ;Doin teh 256 inflation
:12288➔Y
:Fix 5
:Repeat getKey(15)
:Lbl 1
:ClrDraw
:If X∕256<<1
:256➔X
:End
:If X∕256>88
:22528➔X
:End
:If (H=0) or (H=1)
:If getKey(3) ;Moving left and right works
:X+256➔X
:1➔R
:End
:If getKey(2)
:X−256➔X
:0➔R
:End
:End
:If H=1 or H>40
:If getKey(2)
:0➔R
:End
:If getKey(3)
:1➔R
:End
:End
:For(A,0,11)
:Pt-On(A∗8,1,Pic2
:Pt-On(A∗8,56,Pic2)
:End
:If (getKey(54))∗((H=0)+(H>40))∗(B=0)
:If Y/256=48 ;Checks if it needs to jump
:1➔H
:Else
:2➔H
:End
:End
:If H=1
:Y−256➔Y ;Jump!
:If Y∕256≤28
:2➔H ;End Jump
:X∕256➔S ;Sets S and T's coordnates not in sub-pixels
:Y∕256➔T 
:R➔θ ;Sets Right to theta
:Repeat pxl-Test(S,T)
:T−− ;Goes up at 45 degree angle to find ceiling.
:If θ
:S++
:Else
:S−−
:End
:End
:End
:If H>1 ;It freezes from here down here; nothing happens
:If H≤40
:1➔P
:Line(X/256+7,Y/256,S,T)
:Else
:0➔P
:End
:If H<15 ;Fall with connected rope
:Y+256➔Y
:If θ
:X+256➔X
:Else
:X−256➔X
:End
:H++
:If Y∕256=48
:0➔H➔P➔S➔T
:10➔B
:End
:End
:If H≥15 and (H≤25)
:If H<21
:Y+(256−((H−15)∗25))➔Y ;My attempted curve
:Else
:Y−((H−15)∗25)➔Y
:End
:End
:If H≥25 and (H≤40)
:If θ
:X+256➔X
:Else
:X−256➔X
:End
:Y−256➔Y ;Now rise with the rope connected
:If Y∕256<9
:56➔H
:0➔P
:End
:H++
:End
:!If H≤40 ;Now the rope releases
:If H≤50
:H++
:If θ
:X+(384−(H−40)∗10)➔X ;Go fast, then slow after the rope releases
:Else
:X−(384+(H−40)∗10)➔X
:End
:If Y∕256<9
:56➔H
:0➔P
:End
:Y−−
:ElseIf (H≥50)∗(H≤60)
:H++
:If H<56
:Y+(256−((H−50)∗25))➔Y ;Curve
:Else
:Y−((H−50)∗25)➔Y
:End
:End
:If θ
:X+256➔X
:Else
:X−256➔X
:End
:End
:If H>55
:If Y∕256<48
:Y+256➔Y ;Now fall down
:If θ
:X+256➔X
:Else
:X−256➔X
:End
:Else
:0➔H➔S➔T ;Reset once it touches the ground
:End
:End
:End
:End
:Pt-On(X∕256,Y∕256,P∗8+Pic1)
:If B
:B−−
:End
:DispGraph
:End
To isolate where it screws up,
:If H>1
:If H≤40
:1➔P ;Well, this 1->P kicks in
:Line(X/256+7,Y/256,S,T) ;Line doesn't draw
:Else
:0➔P
:End
:If H<15 ;Fall with connected rope
:Y+256➔Y ;This doesnt work here
: ; the movement stuff below it doesnt work either.

The curves are kind of crappy, but ill improve them once it works,.
« Last Edit: November 26, 2011, 06:29:25 pm by epic7 »

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #47 on: November 26, 2011, 07:36:52 am »
When I first saw this topic, I thought it was gonna be bionic commander XD
Good luck with it XD
Sig wipe!

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #48 on: November 26, 2011, 10:54:29 am »
Yep, I still need a name. Maybe Grappler or something :P

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #49 on: November 26, 2011, 11:27:39 am »
With Zedd, couldn't you theoretically make the ceiling and floor part of the tilemap and make any protrusions moving objects?
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #50 on: November 26, 2011, 11:45:30 am »
Well, the floor and ceiling would have to be scrolling too since it is varied

Offline collechess

  • LV3 Member (Next: 100)
  • ***
  • Posts: 93
  • Rating: +22/-2
    • View Profile
Re: Untitled Grappling Hook Game (for now)
« Reply #51 on: November 26, 2011, 11:55:10 am »
Looks nice.  I once made something kind of like that in Gamemaker but it was endless because I was too lazy to make actual levels.  For the name, I used grapplebot, but that was because the main character was a robot. 
« Last Edit: November 26, 2011, 11:55:21 am by collechess »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Grappler!
« Reply #52 on: November 26, 2011, 06:24:03 pm »
I'll probably stick with Grappler as a name ;)

Now to figure out why my guy freezes in midair <_<
« Last Edit: November 26, 2011, 06:24:19 pm by epic7 »

Offline epic7

  • Chopin!
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2200
  • Rating: +135/-8
  • I like robots
    • View Profile
Re: Grappler!
« Reply #53 on: November 26, 2011, 09:30:27 pm »
Geez, Im stuck. I can't see what's wrong. I'll just do what I did once,
Print out the whole code,
Sit down with a mug of hot chocolate while carefully going through the code like the calc would.

It's the same as before, but with inflation. Ive never worked with inflation though.

But I'm sure I'll figure something out! :D

Offline annoyingcalc

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1953
  • Rating: +140/-72
  • Found in Eclipse.exe
    • View Profile
Re: Grappler!
« Reply #54 on: November 26, 2011, 11:29:52 pm »
this project is looking awesome
This used to contain a signature.

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: Grappler!
« Reply #55 on: November 27, 2011, 05:13:57 pm »
Looking forward to this project (And Robogun lol) Nice Job!
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: Grappler!
« Reply #56 on: November 27, 2011, 05:39:45 pm »
RoboGun is done. For some reason when running it in wabbit, I get an invalid error. It's in no shell, I made sure. ???

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: Grappler!
« Reply #57 on: November 27, 2011, 05:47:09 pm »
I got that too, Try compiling it in Ion, That works with noshell :)
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: Grappler!
« Reply #58 on: November 27, 2011, 06:25:58 pm »
Maybe it's over the size limit

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: Grappler!
« Reply #59 on: November 27, 2011, 06:27:10 pm »
could you send me the source, I think I got an idea!
« Last Edit: November 27, 2011, 06:27:52 pm by saintrunner »
My Sprites Thread   :Updated often :) for your viewing pleasure

GAMES: