playMaker

Author Topic: 2 cubeship  (Read 2134 times)

TheRagMan

  • Playmaker Newbie
  • *
  • Posts: 10
2 cubeship
« on: December 01, 2013, 12:58:27 PM »
hello, here's my problem:
 
I have 2 cubeship  shooting each other.

Im trying to do a dynamic sys so im playing with var... so there is a shield, a missile recharge rate, ship health and cannon health..

i'm blocked on logic,about how to assign damage,
cause i think that the bullet need to bring his var like damage...and then the target will elaborate it using,shield and assigning damage...maybe the solution it's the send message action?
or im totally wrong in logic O_o 
Thx for any suggestion
 

phannDOTde

  • Full Member
  • ***
  • Posts: 237
    • Peter Hann .de
Re: 2 cubeship
« Reply #1 on: December 01, 2013, 02:20:15 PM »
I applyed a Damage Variable on the Bullet Object and when it Hits the Ship I register that with Trigger a Event storeing the Collider Object (Bullet) and get the Damage Value with Get FSM Int from the Impact Object. Then do the Calc on the Ship or whereever you whant. There are easyier Options depends how compley you Project will be. Check out my Prototype here

http://www.peter-hann.de/projekte/cyberpunk-3776/

cheers
Peter

 

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15620
  • Official Playmaker Support
Re: 2 cubeship
« Reply #2 on: December 02, 2013, 01:30:24 AM »
Hi,

 All of this is the perfect job for TargetPro:

https://hutonggames.fogbugz.com/default.asp?W993

It allows you to create proper weapons, damages, damage application to targets and some AI to know when to fire and to whom, and a lot more. I suggest you check it out and maybe contact the author to see if it fits your expectations.

bye,

 Jean