how to make continuous horizontal moving construt2

Get help using Construct 2

Post » Mon Aug 19, 2013 10:37 am

Hi friends,

   Could anyone please help me, I have one image and one text and I placed the text upon that image, now how to make both image and text continuous horizontal moving at same time in construct2?
B
3
Posts: 29
Reputation: 233

Post » Mon Aug 19, 2013 11:59 am

Add the pin behaviour to the text and pin it to the image. Add bullet behaviour to the image and use 'setangletoward' a target object and the image will move towards it. Or you can add platform behaviour to the image and simulate movement left/right towards a target object.
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Mon Aug 19, 2013 1:01 pm

hi plinkie,

    I took one global variable and I pass the values in that like as below:

https://www.dropbox.com/s/5262j0bhl6tmrny/horizontal%20moving.png

My problem is image is working fine that means image is moving horizontal continuously but text is working at one time only and next time is stopping the start of layout.I gave animation for image but text having no animation. could please tell me the solution??
sai sronitha2013-08-19 13:04:48
B
3
Posts: 29
Reputation: 233

Post » Mon Aug 19, 2013 1:59 pm

I would have to see some kind of .capx file with the event sheet
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Mon Aug 19, 2013 2:19 pm

Hi plinkie,

   Please check this below link:

https://www.dropbox.com/s/pi8irmobo56upx7/sample.capx
B
3
Posts: 29
Reputation: 233

Post » Mon Aug 19, 2013 2:24 pm

They are both moving as one when I preview it, text and image together move to the right constantly. What's the issue?
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Mon Aug 19, 2013 2:29 pm

I have to make both image and text as moving continuously horizantal side but not one time
B
3
Posts: 29
Reputation: 233

Post » Mon Aug 19, 2013 2:33 pm

@sai sronitha
If you put the pin behavior like plinkie said, the text will follow the image, and I changed the "=" to ">="

sample_edit.capx
B
21
S
8
G
7
Posts: 49
Reputation: 5,274

Post » Mon Aug 19, 2013 3:04 pm

Worked for me as sent without the pin behaviour as they both have the same logic and move to the right : S
B
45
S
15
G
73
Posts: 2,008
Reputation: 43,398

Post » Tue Aug 20, 2013 6:01 am

Thank u so much friends. It's working fine.....
B
3
Posts: 29
Reputation: 233

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 8 guests