Software Center 2026-06-03 21:45 (Edited)
How do i make a gearshifter for a game i am making. I want to have N, R, 1, 2, 3,4 and a limit for speed in each gear so how do I do that
Thank yall
C-script 2026-06-04 04:04 (Edited)
Because it’s you asking I’m guessing you’re going to use touchscreen so you could use sprites. I suggest you use a variable to locate set positions with \8. With \8 it would act like cell without cls. I made a program that goes over this very well (chase NX). A simple line of code can do it( IF X=5 and Y=5 then PRINT “CORRECT”) this line checks where x and y are then does what you want. In your case there would be a variable SPEED=0 and when you press the gas then SPEED=SPEED+1, after that you would check what SPEED is at ( IF SPEED=10 and SHIFTX=5 \8 and SHIFTY=5\8 then SPEED>11 ) this checks where the SHIFT x and SHIFT y and limits the SPEED.
Nx=5\8
Ny=5\8
Rx=8\8
Ry=8\8
ONEx=11\8
ONEy=11\8
SHIFTx and SHIFTy
And so on
If you look at my program it explains it a bit more.
moechofe 2026-06-04 09:50
I think the most difficulty part is how to control the thing and prevent user for moving from 1 to 3 without going through the central part.
moechofe 2026-06-04 14:54
Something like this.
Software Center 2026-06-04 18:26
Oh ok dont mind the topic i will change it
Software Center 2026-06-04 22:54
How can I have it change gear like visually. Like Gear$=“N” so it shows GEAR N on the screen
moechofe 2026-06-05 08:00 (Edited)
text 10,10,"gear "+gear$
SP4CEBAR 2026-06-12 12:46 (Edited)
You may be interested in this project of mine, it simulates:
With controls such as
Software Center 2026-06-13 00:45
Can you put mine gearshift in and remove the clutch. And if you could could you make the RPM look more “race style”
SP4CEBAR 2026-06-19 12:07 (Edited)
I'm sorry, you'll have to do that yourself, but I can help you understand the program though. you can view the source code in your browser by copying and opening the link below (with the view-source: prefix)
view-source:https://lowresnx.inutilis.com/uploads/GebvfJzr5z_Gear_Shifter.nx
I just saw that I already put in the effort of structurizing the code to make it easier to read.
You can learn a lot by diving into someone else's code
If you don't understand it, you could send the code to an AI and ask them
the first lines reveal the structure of the code
GOSUB SETTINGS
GOSUB SETUP
GOSUB MAIN
END
first settings are loaded, then the simulation is set up, then the main loop is run
Software Center 2026-06-19 16:07 (Edited)
Version 0.0.2 is out!