Author Topic: My new NXT game, about a jumping square (need help!)  (Read 25501 times)

0 Members and 5 Guests are viewing this topic.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #30 on: March 31, 2012, 10:57:52 am »
Bounce?
I guess I could maybe do that... if it fits the theme
What do you mean "will they run into each other and stop?"

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #31 on: March 31, 2012, 10:58:45 am »
Like if one block falls on another, does it go through it or stay on top?

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #32 on: March 31, 2012, 10:59:26 am »
Why would a block fall? Are you talking about an enemy?
Or the player?
« Last Edit: March 31, 2012, 10:59:38 am by nxtboy III »

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #33 on: March 31, 2012, 11:00:07 am »
Enemies and players, sorry.

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #34 on: March 31, 2012, 11:01:16 am »
oh, then yes, the player collides with the enemies, because the player checks pixels for collision after the enemies are drawn.

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #35 on: March 31, 2012, 11:01:52 am »
Cool :D Do enemies also do this? (like if an enemy lands on an enemy)?

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #36 on: March 31, 2012, 11:03:22 am »
yes. All things collide, basically. :)

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #37 on: March 31, 2012, 11:04:26 am »
Awesome o.o I still have to test if the one I wrote in Grammer will do that (I have not added enemies). Other engines that I made never used collision detection x.x

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #38 on: March 31, 2012, 11:12:38 am »
Well, now the bouncing works!!
Thanks Xeda!
any more ideas, anybody?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #39 on: March 31, 2012, 02:32:07 pm »
So I am curious now about how well bouncing works :D I am glad to have helped :3

EDIT: For the curious, since it was discussed on IRC, to bounce, instead of making velocity==0 on impact, do -V→V. However, that will keep bouncing, so to make a dampening effect, do -V/2→V or use some other number to make a more or less dampened effect :D

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #40 on: March 31, 2012, 02:34:16 pm »
You want to see a small example of it, as an .avi?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #41 on: March 31, 2012, 02:35:29 pm »
Yes :D That would indeed be cool :) (I have the others already downloaded and saved >.> )

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #42 on: March 31, 2012, 02:37:13 pm »
Ok, here's a screenie.
Any other ideas (or maybe levels :P)?

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: My new NXT game, about a jumping square (need help!)
« Reply #43 on: March 31, 2012, 02:38:21 pm »
Wow, that looks so much more natural, great!

Offline nxtboy III

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 795
  • Rating: +26/-1
  • NXT!
    • View Profile
    • Program NXT
Re: My new NXT game, about a jumping square (need help!)
« Reply #44 on: March 31, 2012, 02:38:57 pm »
Ya, thanks! Your a big help!
Any more ideas?

EDIT: And by the way, this makes the game seem a lot more fun (especially from falling from high heights).
« Last Edit: March 31, 2012, 02:39:52 pm by nxtboy III »