Can I rotate an object on the x or Y axis?

Get help using Construct 2

Post » Thu Dec 29, 2011 10:00 pm

Hi

I wanted to know if it is possible to Rotate a sprite on the X or Y axis.

What I mean is lets say I have a square picture as a sprite. I want to rotate it as though like the earth spinning on its axis, so that after 1/2 rotation I see the "back" and after 1 full rotation I see the front again.

Basically like this sample gif below but without using a GIF on animations. I know I can use "Rotate" but I want to know if SPINNING is possible without animations.

B
3
G
1
Posts: 10
Reputation: 545

Post » Thu Dec 29, 2011 10:49 pm

Last edited by Yann on Sun Sep 14, 2014 10:36 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Dec 29, 2011 11:44 pm

@Yann

Fantastic. Thanks so much. Exactly what I wanted and so fast too.

Now I'm cooking.

I'm looking at making a Carousel like selector with images a-la-Itunes.

This will be a great help for me.

Just another quick Q.

If I was using say 10 images, all same size, do I have to have 10 different sprites or can I use a single sprite and change the image at runtime?

I guess I have to have different sprites, one for each image?
B
3
G
1
Posts: 10
Reputation: 545

Post » Fri Dec 30, 2011 12:26 am

look at r0j0's post http://www.scirra.com/forum/3d-carousel_topic47038.html

For your question you better use the same object, if you want other images to show up, just add animation frames, set the animation speed to 0 and then change the initial frame in properties.Yann2011-12-30 00:27:29
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri Dec 30, 2011 8:24 am

Cool. Nice example. I must dissect the event sheet to see how he is doing what he is doing. Thanks again.
B
3
G
1
Posts: 10
Reputation: 545


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 29 guests