The Daily Click ::. Forums ::. Klik Coding Help ::. shooting piles of stuff?
 

Post Reply  Post Oekaki 
 

Posted By Message

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
22nd March, 2009 at 23:59:30 -

Does anyone know of an easy way around the problem im having?

Say you have 15 images piled on top of each other, if you click on the pile of images only the top one is destroyed and then another click will destoy the next one and so on. i suck hard at coding and cant figure it out. any help would be greatly appreciated.

 
n/a

OMC

What a goofball

Registered
  21/05/2007
Points
  3516

KlikCast Musician! Guy with a HatSomewhat CrazyARGH SignLikes TDCHas Donated, Thank You!Retired Admin
23rd March, 2009 at 00:09:19 -

Well, it may work to do Pick One of >> Bring to front + Destroy, but that would look funny if they aren't all lined up pixel to pixel, which would warrant the bring to front unnecessary anyway... :\

I'll keep thinking. I've got a printer driver issue to work out. (I have determined that there is nothing more infuriating to deal with in the realm of computer hardware than printers/scanners. Nothing.)

Edited by OMC

 

  		
  		

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
23rd March, 2009 at 01:20:21 -

I had a source but I lost it... I'll build a new one, might be better this way.

Edit: I forgot how difficult this is. I'll continue working on this until someone has an answer.

Edited by an Administrator

 
thinking is like pong, it's easy, but you miss sometimes.

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
23rd March, 2009 at 05:11:34 -

Ok, after rebuilding it, I've figured out a way to avoid huge complications. This source is only 5 lines of code.
It's a bit glitchy but it's 11 PM now and I need to rest, been at this for a while trying to optimize.
http://members.shaw.ca/liquixcat/Stacking.zip

Edit: There is a small glitch with tiles undernieth having to be double clicked. Add this code to fix it.

Alterable Value A of Group.Player < lyrGetNumLvls( "Layer object" )
~~~Set Flag 2 of Group.Player off

Edited by an Administrator

 
thinking is like pong, it's easy, but you miss sometimes.

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
26th March, 2009 at 06:27:13 -

So... any feedback? it's been a few days. Is this not what you meant?

 
thinking is like pong, it's easy, but you miss sometimes.

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
26th March, 2009 at 13:08:23 -

thank you very much for the code. I havnt had a chance to test it yet but i imagine you nailed it. I dont get much time anymore sadly just had an awsome idea for a game and if this code works (which i bet it will) will allow me to do it. so thanks alot in advance

 
n/a

Liquixcat

Administrator
Lazy Coder

Registered
  08/12/2002
Points
  201

VIP MemberLikes TDCKitty
26th March, 2009 at 19:47:05 -

You're welcome, hopefully it's what you wanted.

 
thinking is like pong, it's easy, but you miss sometimes.
   

Post Reply



 



Advertisement

Worth A Click