Regarding mixing the characters sprites in certain conditions

abulrezg

New member
HI, IM WORKING NOW IN CREATING THE SPRITE SHEETS AND IM WONDERING IS THERE A WAY IN OPENBOR TO CONTROL WHAT PARTS OF THE SPRITE APPEAR AND WHAT CAN HIDE IN CERTAIN CONDITIONS WHEN 2 CHARACTERS COLLIDE , FOR EXAMPLE IF THE CHARACTER GRAB AN ENEMY LIKE THE BELOW
FIRST ONE:
FIRST.png


SECOND CHARACTER:

SECOND.png

WHEN THE FIRST GRAB THE SECOND LIKE THIS:

THIRD.png


IN THE ABOVE WE SEE SOME PARTS OF THE SECOND CHARACTER (abdominal area) ARE NOT SHOWED, THE FIRST ONE HOLDING HIM WITH HIS HAND , IS THERE A WAY TO DO THIS IN OPENBOR or FOR THIS CASE AND SIMILLIAR CASES shall i create the second character and clearing his abdominal area LIKE BELOW:

FOURTH.png

THIS WILL CAUSE ME HEADACHE

Please advise the best approach and thank you all in advance
 
Welcome to the community @abulrezg.

First, friendly warning - stop it with the all caps.

Now as for your question, no engine of any kind can display a single bitmap on different planes at the same time. Not even image editors can do that - that's why they have layers. However, what you're wanting create is quite easy. All you do is spawn certain parts, like the arms wrapped around as their own entities. You bind them the same as you bind the wrapped target, with their layer offset flag one above.. Same concept as the layers in an editor.

This is how all sprite engines work when you want layered parts.

DC
 
Back
Top Bottom