[plugin] 3D using Copperlicht

Post your completed addons to share with the community

Post » Thu Mar 08, 2012 4:22 pm

ok, I tried set angle when left or right is pressed. I also added set speed(from the 8directions behaviour) when the up key is pressed. However, when i press Up, the sprite is resetting the angle to zero and then moves to the right.
B
26
S
7
G
3
Posts: 118
Reputation: 4,264

Post » Thu Mar 08, 2012 5:32 pm

I dont get what your asking, explain what you want more.

do you want the player to face the right angle depending on what key is pressed? or do you want it to rotate smoothly depending on the arrow keys?
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Thu Mar 08, 2012 5:36 pm

This reminds me a lot of the Irrlich Engine plugin for MMF when it was announced a long time ago. Nostalgic feelings. :)
Scirra Employee
B
129
S
45
G
15
Posts: 705
Reputation: 15,413

Post » Thu Mar 08, 2012 5:56 pm

Very fascinatig, it would be splendid to see more of the progress :D
B
43
S
9
G
5
Posts: 231
Reputation: 7,291

Post » Thu Mar 08, 2012 6:23 pm

Very awesome, it'd be cool to see what comes of this!
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Thu Mar 08, 2012 9:12 pm

Oh wow, looks very nice!!
B
22
S
6
G
10
Posts: 118
Reputation: 8,005

Post » Thu Mar 08, 2012 11:12 pm

Wow very good, this would be an amazing addon to c2
B
40
S
14
G
11
Posts: 243
Reputation: 9,427

Post » Fri Mar 09, 2012 12:49 am

@smitchell: I have the following events and actions right now to allow the sprite to rotate left and right and to move forward or backward in the direction the sprite is facing:



The problem with this is that it does not use the built-in movement behaviours, so the object is not stopping when colliding with solids. @newt suggested using the 8-direction behaviour, but that does not work because the sprite can only move in 8 directions and not any direction like the demo does right now. I could copy the the 8direction behavior and mod it in javascript to allow moving in any of direction (any of the 360 degrees) ; but before doing that I want to make sure I am not re-inventing the wheel by doing something that can be accomplished with the already-made behaviors. As always, thank you for your time helping me.

@Animmaniac: I did not know there was an irrlicht plugin for MMF :), I bet that was a very welcomed addition to it. The last click product I used was MMF classic (v1.0) and before that, Klick and Play. I loved the days of Klick and Play when every body was sharing their code files in the maxis website, a lot of people built on top of other people's work, that was my first exposure to "open source code" (if you can call it that :) ). Anyways, glad to see another ex-click here, I am very excited about C2, building plugins for it is like 10 times easier than building them for MMF 1.0.

B
26
S
7
G
3
Posts: 118
Reputation: 4,264

Post » Fri Mar 09, 2012 12:55 am

You can fake it with a on collision event inverted as the first trigger.
Sprite negated is overlapping wall
>- do stuff

capx

That doesn't take backing up into account for objects tho.:Pnewt2012-03-09 01:13:53
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Fri Mar 09, 2012 1:06 am

Something like this could hopefuly work.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

PreviousNext

Return to Completed Addons

Who is online

Users browsing this forum: No registered users and 3 guests