Need help making a working screen steering wheel

Hello!

I am looking for help on if I can make a steering wheel feature inside the game (like other car/truck simulators) with 900 degrees steering.

Hi apd and welcome. Can you give us a bit more detail? You want a visual steering wheel that when moved/rotated will control the direction of the car? And can you explain about the 900 degrees of steering? I’m not familiar with that.

You put steering wheel in center of your viewport
And now you subtract (for left) and add (for add) to its angle

Unfortunately, that does not resolve my issue. I meant an interactive on screen steering wheel on mobile devices (on all car/truck simulators).

Yes. That’s what I am looking for. Also, I am aware that most real life cars have 900 degrees rotation on steering.

Hi - an interactive steering wheel …you’ll need to describe exactly how you want it to function in terms of touch and how much of the wheel you see. Do you want it to function only if touch is on the wheel? So it rotates to zero degrees when touch is not on the wheel? And is the rotation of the wheel defined by horizontal movement from the initial touch position or do you have to move your finger in a circle and the wheel rotates according to the change in angle from wheel center to touch pos?

I’ll come back to this later, apd. But in general, the more info you tell us, the more likely it is that someone can/will help you. We now know it’s for mobile devices. Will it be portrait or landscape. How will you be showing car movement? Is the game 2d or 3d. I still don’t know what 900 degree steering is, but I’ll assume it’s where the steering wheel keeps spinning around past 360 degrees.

What have you done so far? If you have a look at Zero’s demo you’ll see there’s a pretty good representation of a steering wheel using q and e keys to steer. No, it doesn’t have 900 degree steering but if you get the basics working you can play with the fancy stuff later.

If you have access to a device with a keyboard and can then use keyboard control, you could get things working pretty well using various GDevelop car tutorials and templates. After that, you can use that logic to change to touch control.

Exactly. I need one that the player move his finger to move the steering wheel - like all other video games of this category. And it will function only if touch is on the wheel. Also, I want the touch to be exactly in the center of the circle thing of the wheel (not the place where the “horn” is).

This works ok…it gets around the -180,180 angle problem by adding angle difference - so that the wheel goes all the way around
You’ll probably need to use touch id’s instead of angle to cursor if using multi touch. but im not testing it on touch just computer


wheel

i put the wheel in a 3d car project - kind of works. Whether its better to have it based on distance from start X() of touch rather than angle from wheel center …possibly. I put it so that ‘touched’ stays on until touch is released as its irritating have it turn off if touch if no longer on the wheel object
You’ll need to use touch ids to set up multi touch. Im testing on computer and so i’ve not done this and i used keys q and a for forward and backward