User Tag List

Results 1 to 6 of 6

Thread: reduce damage relatively to players defence

  1. #1
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    reduce damage relatively to players defence

    I am making an actionrpg similar to zelda (except that you can kill anyone hehe...it will be nonlinear) oh well my problem is that when damage is received..the life counter shall be reduced by the defence stat of the player...but if defence is 10...10 life points are reduced...i was thinking that*if you have more defence it should reduce less from the lifecounter and not increase the amount it reduces. Having defence set to -1 doesnt help because nothing is taken from the counter then of course....how to fix this. I dont want to have conditions like "collision with hitbox + defence =1" subtract 6 from counter...and "collision with hitbox + defence=2" subtract 4 from counter etc...is there some easy fix for this? Thanks :-)

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Well, I don't remember whether it uses subtraction or division to do it, but my simple RPG example had a stat system, including attack and defense. Here's a link: http://community.clickteam.com/threads/87675-Simple-RPG-example

    Let me know if that helps, k?

  3. #3
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I remember doing a turnbased RPG fighting system once working perfectly and I remember I had to do something like adding my defence and the enemys strength to a totaldamage counter and make sure that I didn't get HP back if my defence was higher than the enemys strength...something like that. Gonna check your example

  4. #4
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    944
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Can't you just have a check where if (Enemy damage - Player DEF) < 0 then Enemy damage = 0?

  5. #5
    Clicker Fusion 2.5Android Export ModuleFirefly 3D Module

    Join Date
    Sep 2010
    Posts
    577
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah something like that should work. Thanks

  6. #6
    Forum Moderator Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export ModuleXNA Export Module
    ProdigyX's Avatar
    Join Date
    Jan 2011
    Posts
    1,197
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You can also do something like:

    Damage Dealt = Max(0, Enemy Damage - Player Def)

Similar Threads

  1. How can I reduce the frame scale in my game?
    By Dimar in forum Fusion 2.5
    Replies: 5
    Last Post: 18th January 2014, 11:03 AM
  2. Unable to reduce my app size
    By mobichan in forum iOS Export Module Version 2.0
    Replies: 6
    Last Post: 17th May 2012, 06:49 AM
  3. What are some ways to reduce lag?
    By Jocastus in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 26th May 2010, 11:02 PM
  4. Fraction Reduce
    By LB in forum File Archive
    Replies: 0
    Last Post: 10th March 2008, 10:22 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •