Author Topic: [Project] Ahead  (Read 10023 times)

0 Members and 4 Guests are viewing this topic.

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: [Project] Ahead
« Reply #30 on: December 22, 2010, 05:51:03 pm »
That should work, as long as you put that code after you create the floor/obstacles, but before you create your sprite.
(By create, I mean use Pt-On)
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 Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #31 on: December 22, 2010, 06:10:37 pm »
New gif, looks better, but still buggy.

You can go back but that is for testing purposes :)

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Ahead
« Reply #32 on: December 22, 2010, 06:10:52 pm »
might i suggest for showing your character you use this code.

Pt-change(X,Y,Pic1)
DisplayGraph
Pt-change(X,Y,Pic1)


EDIT: ninja'd
« Last Edit: December 22, 2010, 06:11:08 pm by happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #33 on: December 22, 2010, 06:18:13 pm »
Now, you can't fly so much.

I wonder how to disable pressing the UP key too long or many times to avoid flying :S

Offline jnesselr

  • King Graphmastur
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2270
  • Rating: +81/-20
  • TAO == epic
    • View Profile
Re: [Project] Ahead
« Reply #34 on: December 22, 2010, 06:20:26 pm »
Now, you can't fly so much.

I wonder how to disable pressing the UP key too long or many times to avoid flying :S
well, you could always just wait til you hit the ground again.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Ahead
« Reply #35 on: December 22, 2010, 06:20:40 pm »
timer?

i suggest.

If getkey=1
code code code....
if getkey(1)
up just a bit higher)
end
end
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #36 on: December 22, 2010, 06:21:50 pm »
Now, you can't fly so much.

I wonder how to disable pressing the UP key too long or many times to avoid flying :S
well, you could always just wait til you hit the ground again.

THaNkS! I know how to do that!

Code: [Select]
.Jumping
  If getKey(4)
    If pxl-Test(X,Y+8)=1
      If Y>0
       Y-3->Y
      End
    End
  End

This didn't work... Any idea why? Thanks
« Last Edit: December 22, 2010, 06:25:25 pm by ScoutDavid »

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Ahead
« Reply #37 on: December 22, 2010, 06:38:14 pm »
it should work.  change
Y-3->Y
to
Y-10->Y
and see if it is just a lack of visual responce

also optimization... V


change
If pxl-Test(X,Y+8)=1
to
If pxl-Test(X,Y+8)
« Last Edit: December 22, 2010, 06:39:06 pm by happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #38 on: December 22, 2010, 06:41:03 pm »
Code: [Select]
.Jumping
  If getKey(4)
    If Y>0
      If pxl-Test(X,Y+8)
        Y-3->Y
      End
    End
  End

Didn't work too...

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Ahead
« Reply #39 on: December 22, 2010, 06:42:19 pm »
ummm....

it should work.  change
Y-3->Y
to
Y-10->Y
and see if it is just a lack of visual responce
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #40 on: December 22, 2010, 06:45:24 pm »
I see, trying to find where the bug is.

But it's not lack of visual response. Tried 50, doesn't work :(

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Ahead
« Reply #41 on: December 22, 2010, 06:46:54 pm »
look at your last screeny.
I think that the gravity is just so strong.

might take some work but move this code between the gravity and the displaying of the character.
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #42 on: December 22, 2010, 06:50:01 pm »
It worked... but WOAH!

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: [Project] Ahead
« Reply #43 on: December 22, 2010, 06:53:06 pm »
what worked?
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: [Project] Ahead
« Reply #44 on: December 22, 2010, 06:53:43 pm »
what worked?

I can't fly anymore...

I can't double press up in the air, I mean.