3d carousel

Get help using Construct 2

Post » Fri Jul 19, 2013 5:26 pm

You never know when something will be helpful, thank you guys.
Image
B
109
S
24
G
18
Posts: 1,386
Reputation: 22,905

Post » Wed Feb 19, 2014 11:27 am

Man that is bril you are good programmer thanks a lot
B
262
S
49
G
15
Posts: 2,009
Reputation: 42,233

Post » Wed Feb 19, 2014 11:29 pm

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

Post » Wed May 31, 2017 7:28 pm

@R0J0hound, can you re-upload this please? Not there anymore
B
28
S
14
G
6
Posts: 90
Reputation: 5,492

Post » Sun Jun 04, 2017 10:01 pm

@Fenix18
fixed link
B
95
S
34
G
128
Posts: 5,494
Reputation: 81,676

Post » Mon Jun 05, 2017 8:43 pm

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

Post » 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
12
S
4
G
1
Posts: 69
Reputation: 1,062

Post » 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

global radius = 100

every tick
--- add 100*dt to rotY
--- 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
95
S
34
G
128
Posts: 5,494
Reputation: 81,676

Post » Tue Jan 02, 2018 6:52 pm

@R0J0hound

Thank you so much for taking the time to make the examples.
B
12
S
4
G
1
Posts: 69
Reputation: 1,062

Post » 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
33
S
14
G
3
Posts: 801
Reputation: 6,316

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 15 guests