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$