Jump to content


Renard

Member Since 03 Jan 2010
Offline Last Active Feb 09 2010 10:27 PM

Posts I've Made

In Topic: Questions (with Images!) For A 2.5d Game

06 January 2010 - 09:26 PM

For the game that I am currently working on, I've run into a bit of confusion with my situation.


Collission against Background

Here's our character, on a street. Now because she is only human, I want her to only be able to walk on the road portion of the street- not the wall behind her.
Posted Image
Do I create an invisible solid object at the junction where the road meets the wall to prevent her from going onto the wall?



Different Collisions with different effects

Now, here's our character attacking:
Posted Image
As I have it now, the collision box is set to a small rectangle where her shadow is to make it so that she can appear over the wall as if right up against it, but not actually on it, or behind enemies to give an illusion of 3D depth- How do I set it so that when the sword collides with an object, the object hit will take damage?

Likewise, if she's attacking, and gets interrupted, it should stop attacking and switch sprites
Posted Image
How do I make sure that if the enemy's weapon hits the character outside of their collision box but on the character then they will take damage. Should I make the collission box a bit larger to allow that, or is there another way, such as a mask, that I can use?

Moreover, how do I set it so that if the character is attacked mid-action (movement/attacking), then they will stop that action and immediately switch to the injured animation?

Sprite Origins

Look at the animation frames below
Posted Image

As you can see, each sprite does not have the same origin- what can I do to make sure that the origin of her in the Idle pose will match that of her attacking so as to not have the character glitch and shift the collision box around?

Direction retainment

Lets say that the player moves to the left.
Posted Image
However, the Idle pose has the character facing right-
is there a way to retain the direction of the movement so that if the character stops moving left but starts moving up, down, or idles, then they will retain their direction and wont automatically turn to the right?


Diagonal Movement

Say the player has the Up and Right arrow keys pressed- how do I make it so that the character will move in the diagonal? Do I need to create an if-else for the right and left movement events to check for the up/down arrow keys being pressed?

Flashing
Lets say a character has been defeated-

How do I make the body flash and at increasingly rapid pace and then dissappear, then trigger the next character to come in?
When the character is defeated, how do I make a graphic come in fast from the side of the screen, slow to a crawl so the player can read, and then speed back out? Is a path the best system for this, or should I write an event as to keep it centered on the character?

Thank you in advance for your help- these issues have been giving me trouble and I cant figure out which commands need to be put in what order to accomplish the tasks.



I`m  a noob but i`ll try to help, since it`s too sad to see a so worked topic without any reply...
The defeated character coud be a diffrent sprite, i mean, the character (which looks very nice, you did it?) dies, then you change the sprite to a new one with the flashing animation included.

The diagonal movement is automatically created IF you use jump to position, i think you are using "left key pressed - Move on direction" i was using that too but the jump command works better and creates diagonall movement just by pressing left and down together, just set on the "relative" flag.

For the wall problem, if you make the lower part of the wall "non-passable" you won`t be able to jump near the wall. the chara will collide with the wall, use the shadows technique, explained on the "adding deepth" tutorial you can find it on the official tutorials

I wanted a 2.5 D game too, but I gave up, too many troubles with collision, (mine was a shooting game) jumps and so on.
so i decided a false 3d.

Good luck.

In Topic: Cel Shading

06 January 2010 - 08:42 PM

Wow, that`s quick and cheap and it looks great! I wont need shaders anymore.

Thx a lot!

In Topic: Mixing 2d And 3d

06 January 2010 - 08:35 PM

I'd like to know, in your opinion, which is best way to mix 2d and 3d graphics? I'm talking about something like gta2, where everything it's 2d except for the building and some other small stuff.

I though about changing the projection from perspective to ortho when needed, but changing it everytime you need to draw something seems too expansive to me.

What kind of method would you use to do that?


You can create the objects on 3d, then take screen shoots of the objects and use them like sprites to build your levels.