• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

tilt

  1. angelkof15

    GML What is th code to make an object move by tilting a gamepad?

    I tried with this that I got from the manual, but it didn't work. Btw, I'm not using a phone, only my pc and a gamepad, and yes, my Gamepad has motion/gyro support: if display_get_orientation() = display_landscape { x += sign(device_get_tilt_y()); } else { x +=...
  2. RizbIT

    ios browser tilt sensorS

    HI I know about the device get tilt functions for iphone and android but can these be used it html5 to get device tilt when game played in browser? say you have a driving game where you control the car by tilting it left/right, and this game as in a html5 window on the iphones safari browser...
  3. J

    Problem with tilts when approaching a flat-level

    I'm currently working on an engine for my game that uses the tilt functions as a control. The player can swing their phone up, down, left, or right. For the most part, it works as expected, except for when swinging down. A major decrease in the z-axis from device_get_tilt_z() is registered as...
  4. jujubs

    GML Point player towards tilt direction

    So, I feel like this is simple, but I couldn't find the answer anywhere, and I'm kinda lost in the maths. I want to point the player sprite towards wherever I'm tilting the phone towards. I already got it moving with x += device_get_tilt_x() * (-1); y += device_get_tilt_y(); ...but I just...
  5. alexhinton

    HTML5 tilt controls with html5 not working

    Does the device_get_tilt_x() function work with html5? I am testing them on my iphone after uploading to a website. The movement controls are super simple so far: hspeed = 5*sign(device_get_tilt_x()) No additional code is interfering with this code, when i change it to mouse controls or simply...
  6. J

    Free Tilt - a simple challenging game for android

    Tilt is a modern take on the classic "fall-down" game, and features and endless and challenge mode for both casual and challenging gameplay. I made it as a school project in less than a year, and as this is my first app, I would love to hear some feedback on how I could improve it, your...
  7. S

    Rotating/Tilting Platforms?

    My platform engine is almost complete and I've been working on one last feature to add: rotating platforms. My platform engine is an imitation of the one used in the New Super Mario Bros. games. To handle slopes, the player object uses a single pixel (in Game Maker, a collision_point at the...
  8. H

    Android Utilizing the phone's Yaw (Y rotation)

    Hello, I'm doing a small demo regarding AR/VR, And I used the device_get_tilt_x/y/z() functions to get the phone's orientation. But turns out it can't be used for Yaw, or the Y rotation you point your phone at because GM:S uses the phone's accelerometer, not the Gyroscope sensor. + the tilt...
  9. C

    Player Sprite Tilt/Rotate with Slope

    Im making a 2D Platformer and im trying to make the character sprite dynamically rotate/tilt with slopes, i searched for threads about this. The mayority of them sugested this code: image_angle = direction; The problem is this code wont work because im not using "direction" for my movement...
  10. A

    Question (or potentiality a bug) regarding device tilt and collisions.

    So I'm making a game for iOS. have an object in the center of a room which is a line, with the origin at one end. I have it coded with device_get_tilt_y() and image_angle so that the line always points up. Also, for testing on the PC, I have an extra variable so that I can test it without...
  11. A

    Question Regarding Virtual Keys and Device Tilt.

    So I know Virtual Keys can be mapped to places on the screen, but I was wondering if there was any way to trigger one from a second event altogether... In my case the tilting of device past a point and back again would maybe press and release a key that would activate it for all of the objects...
  12. S

    Android Listening for a shake event?

    I've been experimenting with using the get_tilt function to listen for a shake event but I wondering if anyone has already implemented a good solution. I've had a lot of trouble finding info about this function and i'm not really sure how it works in the first place. I apologize if this is an...
Top