The Daily Click ::. Forums ::. Klik Coding Help ::. Base Building Problem
 

Post Reply  Post Oekaki 
 

Posted By Message

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
3rd December, 2009 at 00:46:55 -

http://www.filefront.com/15042179/TowerD+.mfa

Hello clickers!

I have been working on this project for quite some time now. I had originally intended to release it opensource last month, but didn't finish it in time. The idea around the game is a horizantal tower defense. In which you are given a main building to protect in the center. Then there are four building slots (two on each side). As of now, you can place three different turrets and repair your base.

The problem is in the third turret. The idea was, since it took up so much space, was to give the player an extra space on top to build from. Sounds simple right? Well, the problem is, when the third turret gets destroyed, the building space just hangs in the air! I have tried several methods. Including the current one which the extra space is another object other then the original spaces. It sounds simple to solve.

How to destroy an object in mid-air when it's support structure is gone? Check for overlaps? Check, didn't work. Have player destroy it by clicking? Check, stops the next tower from having an extra object. Then it won't appear til the next object is placed. I have given the object it's own health and try and destroy it that way, but that hasn't worked either.

I was going to submit this to open source month but didn't get the it to this point in time. It's still going to be open source. I would appreciate it if anyone could try and find a solution here. I'd be very thankful that you did. Please?

Thanks in advance!

There appears to be a confusion on the hosts part, give me a minute.

Apparently, MFA Repostiory doesn't like my file for some reason. So I'll just use filefront instead.

Edited by Xhunterko

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
3rd December, 2009 at 01:25:38 -

I couldn't open the file because I don't have the right extensions installed.

I think you need to use an alterable value as an ID#.
I haven't tested it, but I'd have thought some like this should be workable:

+ Time to create a Turret...
-> Create Turret
-> Create Space
-> Spread Value 1 in Turret ID#
-> Spread Value 1 in Space ID#

+ Time to destroy a Turret...
+ Space ID# = Turret ID#
-> Destroy Turret
-> Destroy Space

 
n/a

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
3rd December, 2009 at 05:21:03 -

I'll have to try that again. Knowing how irritating extension hunting is, I've decided to just link the needed extension.

http://sites.google.com/site/mmf2stuff/Data/InterfaceBarObject.zip?attredirects=0

The interface bar is much more stable than the counter in my opinion.

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
3rd December, 2009 at 15:19:56 -

Thanks for the link - I tend to only download extensions etc, as and when I need them.

I think this should do it, but haven't tested it very thoroughly:
http://cid-b1e7ee094271bbda.skydrive.live.com/self.aspx/Public/MMF2%20Files/TowerDedit.mfa

I was also too lazy to comment the changes, so if you can't figure anything out, just ask and I'll try to explain.

BTW: This looks like being a really fun little game - I'll be looking forward to playing it when it's done

 
n/a

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
3rd December, 2009 at 20:35:12 -

It's okay about the changes, I sifted through it okay. I was able to take a look at it for a little bit.

If there is more then 1 shield tower, and 1 gets destroyed, all sticky extend objects get destroyed, not just the one that lost the tower.

If another structure is built over the shield tower, the shield tower gets removed and the sticky extend stays. And if the shield tower is placed over another structure, only the sticky extend gets placed.

For a single shield structure, if it gets destroyed, then any multiples of the sticky object attached to it get destroyed.
^--Supposed to happen, minus the extra stickies.

If a structure on a sticky extend is there when the tower is destroyed, the structure is destroyed as well. <--Supposed to happen.

That's what I found out. I also got it to create a shield tower on a sticky extend. Unfortunatley, it builds one on top but destroys the one on the bottom, oops. I'll fiddle around with this later tonight. At least we got part of it working! Thanks for the help. Would you have any more solutions to the problems I outlined? If you/anybody else wouldn't mind? I could always have the player make the extension themselves if it comes down to it I think.

Thanks again!

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1971

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
3rd December, 2009 at 22:32:18 -

I think I've fixed those problems - the first one was just a careless mistake I made using spread values.

http://cid-b1e7ee094271bbda.skydrive.live.com/self.aspx/Public/MMF2%20Files/TowerDedit.mfa

The downside is that the turrets on top of an extender have now stopped shooting
I'd guess maybe I used a value/flag that was already being used for something else?
I doubt it's a major issue, but let me know if you can't fix it easily.

 
n/a

Xhunterko



Registered
  07/05/2003
Points
  1015

VIP MemberHas Donated, Thank You!Hasslevania 2!Pokemon Ball!
4th December, 2009 at 03:34:23 -

I think you have too! I only encountered one time a problem occured and that was either at the start of the game, when a sticky wouldn't appear. Or when another sticky had just been destroyed. But those are, I think, minor problems. I was just thinking of another solution that might work that may be identical to this one only a bit easier. I was able to fix the turrret problem. All I had to do was add a downward firing angle and it worked just fine. I didn't see why there'd be a problem because the anti-air turrets worked on the shield towers. Now the next step is adding a shield tower on a shield tower. Thank you very much! I'll be sure and update to let you know how it goes!

 
All platforming problems can be mostly solved here:

http://www.clickteam.com/mbfiles2/277308-engine.zip
http://www.angelfire.com/games5/psywakd/platform.gam
www.zephni.com

These are very excellent examples by other people and are very informative.
Image

I work at the speed of "maybe".

Coming Soon: Diary Of An Indie Developer
http://www.youtube.com/watch?v=XaF6H9MrgH8

Twitter:
http://twitter.com/xhunterko
   

Post Reply



 



Advertisement

Worth A Click