October 26, 2021, 16:15:00

Author Topic: OneJump - For the 'There Can Be Only One' Competition.  (Read 725 times)

Offline 3DzForMe

  • Hero Member
  • *****
  • Posts: 1283
Re: OneJump - For the 'There Can Be Only One' Competition.
« Reply #15 on: August 15, 2021, 00:53:49 »
My dilemma is to use h, or m. Hit or Move, I think I'm opting for M, as I'm kinda a pacifist. Well, I try :o

Offline Amon.

  • Sr. Member
  • ****
  • Posts: 256
  • What? There's no ceiling outside?
    • Amon.Pro
Re: OneJump - For the 'There Can Be Only One' Competition.
« Reply #16 on: August 15, 2021, 08:59:05 »
I've modified the code as follows.

if you press and keep pressed the 'S' key on the keyboard, it cycles through the currently active characters in the scene. The currently selected character has a yellow box around them.

If you double tap the 'S' key within a certain amount of time, 0.8 seconds, the currently selected character jumps.

It was a tough cookie to code though. I'm testing it thoroughly though to make sure it's glitch free.

:)
Windows 10 Pro - 64GB DDR4 RAM - GEFORCE RTX 2080 TI 11GB - AMD RYZEN 9 3950X

Offline Steve Elliott

  • Hero Member
  • *****
  • Posts: 3237
  • elgol
Re: OneJump - For the 'There Can Be Only One' Competition.
« Reply #17 on: August 15, 2021, 21:11:46 »
Looking good, what happened to the Chainsaw Gif?  Yes don't get disqualified lol.   :)

As for key choices I think I'll test for the Space Bar, Enter Key and Left Mouse Button.
« Last Edit: August 15, 2021, 21:19:20 by Steve Elliott »
Windows 10 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
MacOS Big Sur 64-bit, 8Gb RAM, Intel i5 2.3 Ghz, Intel Iris Plus Graphics 640 1536 MB
Linux Mint 19.3 64-bit, 16Gb RAM, Intel i5 3.2 GHz, Nvidia GeForce GTX 1050 (2Gb)
Raspberry pi 3, pi 4, pi 400, BBC B, C64, ZX Spectrum

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal