-
need help creating 2d character
trying to create a character instead of using the bike and rider. kind of 2d as the character will be moving about like a 2d game such as the original super mario brothers. need as much info and tips as possible.
-
Senior Member
Re: need help creating 2d character
hi, there are several ways to achieve this, it depends on what movement method you will be using, OPE or Physics.
if you are using OPE then detecting collision with platforms or creatures poses its own problems, fortunately you can enable physics on an OPE glue group and with enough headroom in objects colliding (ie they can not teleport past each other) it should still trigger the Hit/Area triggers for the actions you need to enable/disable.
physics based movement can be achieved with directional forces glued in the object group and enabled on button presses for a brief burst of movement, things like linear dampening and friction under the advance physics can be used to fine tune the movement. however there are issues with this kind of movement, one is stopping the object from arbitrary rotating, even with 100% rotational dampening it can still rotate and fall over! and getting the directional force to push in the exact direction can be a pain, fortunately with the snapping option set under the editor options, will help greatly with this.
next, keep it simple. choose a world axis to create your playing area, east to west (Z axis) or south to north (X axis), this will help massively especially with OPE movement as you only need to concentrate on X or Z and not worry about moving both. also use global coordinates in the OPE, as much as a pain this can be you only need to know the position of one point on your level and base all movement offsets around that, kind of like the corner in a graph, this will be your datum point.
also using a single axis makes creating your level a lot easier especially with the 'snap' options set, at least x and z need to be set, then choose what snap distance you require (the prime objects are in sizes of multiples of a meter, so maybe using 0.25 or 0.2 would be a good snap distance, in this case)
i strongly recommend playing around with moving an object with the controller to get a feel for what will work for you and when you've nailed that start adding area/hit triggers with events tied to those, like disabling the jump button when the feet are no longer in contact with a surface.
well i hope that helps some, sorry if its a little vague.
-
Re: need help creating 2d character
ok so i used the example track (wasnt aware this was one of the examples) and it works good except i cant figure out how to change the character type. it automatically starts as the chrome ball but i want to create my own character...how would i go about setting my character up as the game character?
-
Senior Member
Re: need help creating 2d character
under the menu track settings there's an option to choose you game character, this will move the main blue camera, its target and the physics bubble.