Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 17,886 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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 | 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