# How do I use a certain touch option to do...

Just started using Construct 2? Post your questions here

### » Tue Mar 04, 2014 2:47 am

I am trying to create a version of the Lee Stemkoski breakout tutorial that uses touch controls. However what should be a fairly simple operation results in the paddle starting at the far left of the screen for some reason. The game is still playable but not functioning as well as I would like. Any Suggestions?
B
6
S
1
Posts: 47
Reputation: 759

### » Tue Mar 04, 2014 6:18 am

Maybe you have a capx or more detailled information? I don't really get what you want to do.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

### » Tue Mar 04, 2014 10:14 am

He is right.Attach a capx and post.
I will not let you reach the sisters
Nature Forums
B
11
S
5
G
2
Posts: 496
Reputation: 2,306

### » Tue Mar 04, 2014 3:55 pm

dear friend try this tutorial and see if it can help you
https://www.scirra.com/tutorials/794/to ... imple-game
B
267
S
51
G
15
Posts: 2,039
Reputation: 42,924

### » Tue Mar 04, 2014 5:04 pm

What I meant to say is that the paddle for some reason starts at the far left of the screen for some reason (did not do this before i made it a touch game), and also my win/loss conditions aren't working. Any help or suggestions appreciated. I can't attach the .capx because it is too large.
B
6
S
1
Posts: 47
Reputation: 759

### » Tue Mar 04, 2014 6:41 pm

I am going to guess that you are using something like

every tick -- set position of paddle to touch.x, y position

?

if so then when you don't have a touch in place then this would position the sprite at zero (ie no touch x position), y position.

So if I am guessing right then you could add something like

is in touch
every tick -- set position of paddle to touch.x, y position

As I said - total guess without the capx.

You can save your capx to dropbox and then post a link to that.
You do not have the required permissions to view the files attached to this post.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,912

### » Tue Mar 04, 2014 8:18 pm

Just to add in that you don't need Every tick there. Is in touch will register every tick anyway.
B
57
S
15
G
11
Posts: 912
Reputation: 12,656

### » Tue Mar 04, 2014 9:09 pm

GeometriX wrote:Just to add in that you don't need Every tick there. Is in touch will register every tick anyway.

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,912

### » Wed Mar 05, 2014 1:40 am

Message: theDeletr can only post plain text URLS until they have 500 rep. 1 URLS modified. Why?
here is link to .capx in dropbox https://www.dropbox.com/s/osz60dko5ic6f ... 2real.capx
B
6
S
1
Posts: 47
Reputation: 759

### » Wed Mar 05, 2014 7:58 am

August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
34
G
47
Posts: 1,194
Reputation: 30,912

Next