Accelerator control in all directions

I seriously need help in a simple game development as I am new to programming.I actually want to make a small circle get into a bigger one and start counting to keep a score.And also use the accelerometer as a means of control in all directions.I have made those two circles but the player "circle" could only be moved with the accelerometer on the x axis.I am stuck.Help!!!
Thanks

I assume you are doing this:
local accel = playdate.readAccelerometer()

But you need to do this:
local x,y,z = playdate.readAccelerometer()

Otherwise, please post your accelerometer code.

2 Likes