How do You Move an Object by Tilting iPad?

helpwithcode

#1

Hi!
So, for a game I'm making, I need to make an object move left and right by tilting my iPad. How do you do that? Can someone show me how? (With screenshots, please! =D) Thank you!

These people may be able to help

@Madi_Hopscotch_
@Valgo
@bluedogmc-official
@Mathgirl
@KVJ
@GysvANDRegulus


#2

I'll go get some screenshots! I've only done it a few times, but I think I know how :D


#3

Thank you!


#4

No worries! :D


#5

I haven't done it in a while but I will get some screenshots! :smiley: @Rainboom might beat me to it!


#6

I can look at both of your screenshots and see which way works better =D


#7

Nvm, I've forgotten ಠ‿ಠ

Go me XD


#8

The "tilt" rules can be found in iPad's values! :smiley:


#9


#10

Thank you @Madi_Hopscotch_ and @Mathgirl! I just didn't notice that before :D


#11


The 7 = 7 is just for it to repeat itself forever btw
I used tilt right % instead of tilt left because if you move right, the number you use would be positive (since positive numbers go right), and if you move left, the number you use would be negative (left is opposite of right), since negative numbers move left.


#12

Sorry I don't speak awesome coder language D:


#13

Okay, I get it now! Thanks everyone!
Well actually I don't-
Nevermind, I do!


#14

Thanks for tagging me!

The people above me already answered!

If you need more help though, ask me!


#15

I'm late to everything :joy:


#16

It's okay!
I have to go now, but later I will probably have to ask another question on this topic! Bye!


#17

How do I make a boat shape without using a boat emoji? I need something like a kayak shape from the sky's point of view. (XP)

Waffy's help please tag list

@Madi_Hopscotch_
@Valgo
@bluedogmc-official
@Mathgirl
@KVJ
@Rainboom
@GysvANDRegulus



#18

I have wondered this myself, I remeber MagmaPOP had a game with a boat. I will get the link....
https://c.gethopscotch.com/p/xpfy4ezeq


#19

Thanks, I'll go look at the code :D


#20

It's so complicated! I don't think there's any way I could do that...
Is there any other way I could make a shape like that, using clones? Or without clones, it doesn't matter!
@Kiwicute2016 @SmilingSnowflakes
Guys?