3d carousel

Get help using Construct 2

» Fri Jul 19, 2013 5:26 pm

You never know when something will be helpful, thank you guys.
B
110
S
24
G
18
Posts: 1,391
Reputation: 22,997

» Wed Feb 19, 2014 11:27 am

Man that is bril you are good programmer thanks a lot
B
267
S
51
G
16
Posts: 2,039
Reputation: 43,934

» Wed Feb 19, 2014 11:29 pm

@R0J0hound, thank you very much! You've brought me into the world of 3D!
B
21
S
4
G
1
Posts: 185
Reputation: 2,593

» Wed May 31, 2017 7:28 pm

B
28
S
14
G
6
Posts: 90
Reputation: 5,492

» Sun Jun 04, 2017 10:01 pm

@Fenix18
B
100
S
38
G
134
Posts: 5,555
Reputation: 85,323

» Mon Jun 05, 2017 8:43 pm

Tnx
B
28
S
14
G
6
Posts: 90
Reputation: 5,492

» Mon Jan 01, 2018 11:10 am

@R0J0hound

Is there any way to make them orbit at a 45 degree angle. I tried rotating the layer but i need parallax on it which messes things up.

Thanks.
B
14
S
4
G
1
Posts: 81
Reputation: 1,143

» Mon Jan 01, 2018 9:42 pm

@mOOnpunk
The objects are just moving in a circle. Instead of the circle being on xy it's on xz and the z is used to scale the sprites for perspective.

Anywho the example is old. Here is one that just rotates the points around with more trig.
https://www.dropbox.com/s/zg21utl9iucey ... .capx?dl=1
And here's one where you can more artistically by just arranging the corners of a quad the circle will be on.
https://www.dropbox.com/s/nixq48nn85w3i ... .capx?dl=1

There are likely many other ways. For example you could avoid trig directly and use "move at angle" instead. Add two instance variables z and r2

global rotZ=45
global rotY=0

every tick
--- sprite: set position to (0, 0)
--- sprite: move radius pixels at self.iid*360/sprite.count+rotY degrees
--- sprite: set r2 to self.x
--- sprite: set z to self.y/radius - 3
--- sprite: set position to (320, 240)
--- sprite: move self.r2/self.z pixels at rotZ degrees
--- sprite: set scale to -1/self.z

There are probably others
B
100
S
38
G
134
Posts: 5,555
Reputation: 85,323

» Tue Jan 02, 2018 6:52 pm

@R0J0hound

Thank you so much for taking the time to make the examples.
B
14
S
4
G
1
Posts: 81
Reputation: 1,143

» Fri Feb 09, 2018 3:42 pm

@R0J0hound

Great job!
Any tips on how to make it move 1 by 1 image using swipe?

And one more thing... is there a way to load image animation/frames from URL (increase / decrease number of frames and to load on each frame different image) so one can make a realy dinamic carousel?
(when i try load from URL it changes all frames to the one loaded)
B
37
S
16
G
3
Posts: 860
Reputation: 6,748

PreviousNext