[plugin] 3D using Copperlicht

Forum Home Forum Home > Construct 2 Development > Plugins for Construct 2
 Post Reply Post Reply Page  <1234 6>
Author
2,909 Rep
Post Options Post Options   Quote juantar Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 4:22pm
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.
Back to Top
5,350 Rep
Post Options Post Options   Quote smitchell Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 5:32pm
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?
In memory of flash :'(
Back to Top
6,117 Rep
Post Options Post Options   Quote Animmaniac Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 5:36pm
This reminds me a lot of the Irrlich Engine plugin for MMF when it was announced a long time ago. Nostalgic feelings. :)
Personal Portfolio: www.prr-art.com
Back to Top
4,308 Rep
Post Options Post Options   Quote Miu3 Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 5:56pm
Very fascinatig, it would be splendid to see more of the progress :D
Back to Top
7,946 Rep
Post Options Post Options   Quote Jayjay Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 6:23pm
Very awesome, it'd be cool to see what comes of this!
Jayjay =]
Back to Top
6,322 Rep
Post Options Post Options   Quote Haematite Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 9:12pm
Oh wow, looks very nice!!
Back to Top
6,626 Rep
Post Options Post Options   Quote tonycrew Quote  Post ReplyReply Direct Link To This Post Posted: 08 Mar 2012 at 11:12pm
Wow very good, this would be an amazing addon to c2
http://dl.dropbox.com/u/44766364/Games/Space2011/index.html Space 2011 (C2 Competition Entry
http://dl.dropbox.com/u/44766364/Games/getin/index.html Get That Ball In (C2 Game)
Back to Top
2,909 Rep
Post Options Post Options   Quote juantar Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 2012 at 12:49am
@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.

Back to Top
16,478 Rep
Post Options Post Options   Quote newt Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 2012 at 12:55am
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.:P

Edited by newt - 09 Mar 2012 at 1:13am
Back to Top

Moderator
28,496 Rep
Post Options Post Options   Quote Kyatric Quote  Post ReplyReply Direct Link To This Post Posted: 09 Mar 2012 at 1:06am
Something like this could hopefuly work.
Back to Top
 Post Reply Post Reply Page  <1234 6>

Forum Jump Forum Permissions View Drop Down