Please help me with my game

i have a problem with my game. I don’t know how to make the cursor follow my mouse when you click ■■■■. Does anyone know how to do that?

the blocked out word is s.h.i.f.t.

I think you forgot to type the “f”.

1 Like

yah. do you know how to help

1 Like

Yup. I’m going to send some screen shots give me a few minutes okay?

1 Like

oh and here is my game. Flowlab Game Creator - Stickball Shootout

1 Like

you move with aswd and you shoot by clicking.
also to move on you need to clear all rooms

1 Like

By the way, welcome to the forums!
So here’s the code for the shift click thing:

Copy and paste the code above and put it into the object you want the code for
Screenshot 2024-02-02 9.07.21 AM
If the object is in the game world make sure to set this in physics.
The ball teleports to the mouse when “shift” is clicked. I could make it so the mouse has to hover over the object AND you must click shift for it to move if you’d like.

wait what. the ball? and whats the code for?

The code is for what you asked lol.

i know. so the 1st screenshot goes into the gun. and the second

The second is literally the same as the screenshot, but you can copy and paste code into objects on flowlab, just highlight the code, then go into the object that needs it, click on air in the coding area, and click import, and ctrl+v.

it was just a quicker way of putting the code into your object, instead of looking for the behaviors and putting them in.

oh thanks im testing it now

ummm. now it just holds the gun into place instead of the camera following the the gun. do you have a way for it to like expand the camera and zoom into what your aiming at

I’m not really a camera expert, sorry.

ok do you know somoone who is?

By the way, if you already had the code in, it’s ok you don’t have to copy and paste the “text code” I sent you.

Not really.

ok, thanks any way :grin:

1 Like

No problem, if you need more help and have no-one to ask you could ping me if you like.

Just type “@” and then my username. Like this; @Deadly_Smile or like @koolcat

1 Like