Hello!
I am working on a Breakout style game where there is a paddle at the bottom and some bricks at the top and bounded by walls on 4 sides. The ball is set with a bullet behavior. I had set the paddle and bricks as Solid and the paddle with 8-Direction behavior with Direction set to Left&Right. Everything works fine as expected with keyboard. The paddle does not pass into the left right walls since they are Solids too.
I am trying to code for touch -- I want the user to be able to grab and move the paddle left & right.
I have used the following code in the event sheet:
Touch -- Is touching Paddle -- Paddle Set X to Touch.X
I encounter the following issues:
1) I have turned on 'Use mouse input' for the Touch object. So when I click and drag the paddle, when the paddle object hits the wall, things go weird and paddle jumps up/down a bunch of pixels. What is the recommended behavior to get the 8-Direction Left & Right behavior with Touch?
2) When playing around with Windows 8 Release Preview on a touch machine, I noticed that the touch is not working as expected on IE or Chrome. I am not able to grab the Paddle at all on Chrome and on IE once I grab it and move the Touch.X and Touch.Y become 0. Apart from the method mentioned above, I tried "On touched" Paddle and that does not help either. As soon as I touch/grab the paddle and move my finger, the game thinks that I have already released the touch - which I have not.
Could you please help me what I could be doing wrong or are these known issues? I am on r95.
Thank you!