Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,213 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
overlap skin #391348
01/11/12 02:02
01/11/12 02:02
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline OP
Member
msmith2468  Offline OP
Member

Joined: Dec 2009
Posts: 256
USA , NY
I want to create a block that breaks in my game and falls
through the floor when you step on it. maybe like a cracking effect. I know i could do this with different skins that i could just rotate through to seem like an animation of the block cracking. But the problem with that is that i already have 7 different colored skins that would all need the cracking effect. if i used only 3 animation frames of cracks then i would need 21 separate skins for the effect.

I also thought about using a sprite that i could see through this way the skin on the block could remain the same and i could switch through sprite animations to achieve my effect.
the problem with this is that if i wanted my effect on all sides of the block then i would need to place sprites on all sides.

If you know of another way to do this please let me know. i guess what i was hoping for is some sort of second skin ability that i could set layers with on my model. if not then ill manage with the sprites.

Thanks


Mikes Wicked Games

www.mikeswickedgames.com
Re: overlap skin [Re: msmith2468] #391353
01/11/12 06:12
01/11/12 06:12
Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
Espér Offline
Expert
Espér  Offline
Expert

Joined: Mar 2008
Posts: 2,247
Baden Württemberg, Germany
create a second (a bit larger block). set his skin to the cracks and the texture wirh a transparent background (32bit tga + alpha channel).
now place that 2nd block at position of another to show the cracks.


Selling my Acknex Engine Editions (A7 Com & A8 Pro):
>> click here if you are interested <<
Re: overlap skin [Re: Espér] #391417
01/11/12 20:46
01/11/12 20:46
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline OP
Member
msmith2468  Offline OP
Member

Joined: Dec 2009
Posts: 256
USA , NY
Ok that sounds like it should work ill give it a shot thanks.


Mikes Wicked Games

www.mikeswickedgames.com
Re: overlap skin [Re: msmith2468] #391438
01/12/12 05:52
01/12/12 05:52
Joined: Dec 2009
Posts: 256
USA , NY
msmith2468 Offline OP
Member
msmith2468  Offline OP
Member

Joined: Dec 2009
Posts: 256
USA , NY
Thanks a lot it works great.
i was worried about how i was going to keep them together when they are moving but i figured it out.

i have the original block call this when its created

you = ent_create(cracks......

which places the cracks and keeps the pointer you
then every frame i set

my.x = you.x;
my.pan = you.pan;
my.tilt = you.tilt;
......

Then i have the cracks do the moving part and the original block follows.

maybe you don't care about the details.... But Thanks again!!!


Mikes Wicked Games

www.mikeswickedgames.com

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1