Notifications
bg
Bojan Pađen
Explorer - Other
Croatia
2
Likes
1
Follower
0
Connections
All
Articles1
Games3
Showcases0
Column4
Jobs0
Bojan Pađen
updated the webgl
Jun 23, 2020
Nightmarish Cactus Infestation
Build3, trying to get project to work.
Bojan Pađen
Explorer
15 days ago
My favorite item is "Doomcaller" Weapon. In the end. I wanted every 3rd strike to be double damage and movement speed bonus and stats bonus. I also wanted to have a timed counter that will reset 3rd hit if 3secounds passed and didn't land hit. But I started to lose extra time and I scraped the idea :D public override void OnAttack(CharacterData target, CharacterData user, ref Weapon.AttackData data) { ++_counter; _damageSum += data.GetDamage(StatSystem.DamageType.Physical); } public override void OnPostAttack(CharacterData target, CharacterData user, Weapon.AttackData data) {
if(_counter == 3) { _modifier.Stats.strength = PercenttageCalculator(user.Stats.stats.strength, strenghtModifier); _modifier.Stats.agility = PercenttageCalculator(user.Stats.stats.agility, agilityModifier); _modifier.Stats.defense = PercenttageCalculator(user.Stats.stats.defense, defanceModifier); int newDamage = _damageSum / _counter * damageMultiplayer; data.AddDamage(StatSystem.DamageType.Physical, newDamage); target.Stats.Damage(data); user.Stats.AddTimedModifier(_modifier, duration, "AddStats", sprite); _counter = 0; _damageSum = 0; user.StartCoroutine(AddSpeedBoost(user)); } } private IEnumerator AddSpeedBoost(CharacterData user) { NavMeshAgent character = user.GetComponent<NavMeshAgent>(); character.speed += speedModifier; user.Stats.AddTimedModifier(new StatSystem.StatModifier(), duration, "SprintBuff", speedSprite); yield return new WaitForSecondsRealtime(duration); character.speed -= speedModifier; } private int PercenttageCalculator(int baseStat, int modifier) { return Mathf.FloorToInt(baseStat * (modifier / 100.0f)); }
Bojan Pađen
updated the game
Jun 23, 2020
Nightmarish Cactus Infestation
Somehow I can't play my game submitted on WebGL Submissions. So I created zip file from my build game. https://drive.google.com/file/d/1TKeZv4xN2qShFt2BBsqCyzRBYGx8Ekwy/view?usp=sharing
Bojan Pađen
published the game
Jun 23, 2020
Nightmarish Cactus Infestation
Somehow I can't play my game submitted on WebGL Submissions. So I created zip file from my build game. https://drive.google.com/file/d/1TKeZv4xN2qShFt2BBsqCyzRBYGx8Ekwy/view?usp=sharing
Bojan Pađen
published the webgl
Jun 22, 2020
Nightmarish Cactus Infestation
Build3, trying to get project to work.
Bojan Pađen
Explorer
15 days ago
My favorite item is "Doomcaller" Weapon. In the end. I wanted every 3rd strike to be double damage and movement speed bonus and stats bonus. I also wanted to have a timed counter that will reset 3rd hit if 3secounds passed and didn't land hit. But I started to lose extra time and I scraped the idea :D public override void OnAttack(CharacterData target, CharacterData user, ref Weapon.AttackData data) { ++_counter; _damageSum += data.GetDamage(StatSystem.DamageType.Physical); } public override void OnPostAttack(CharacterData target, CharacterData user, Weapon.AttackData data) {
if(_counter == 3) { _modifier.Stats.strength = PercenttageCalculator(user.Stats.stats.strength, strenghtModifier); _modifier.Stats.agility = PercenttageCalculator(user.Stats.stats.agility, agilityModifier); _modifier.Stats.defense = PercenttageCalculator(user.Stats.stats.defense, defanceModifier); int newDamage = _damageSum / _counter * damageMultiplayer; data.AddDamage(StatSystem.DamageType.Physical, newDamage); target.Stats.Damage(data); user.Stats.AddTimedModifier(_modifier, duration, "AddStats", sprite); _counter = 0; _damageSum = 0; user.StartCoroutine(AddSpeedBoost(user)); } } private IEnumerator AddSpeedBoost(CharacterData user) { NavMeshAgent character = user.GetComponent<NavMeshAgent>(); character.speed += speedModifier; user.Stats.AddTimedModifier(new StatSystem.StatModifier(), duration, "SprintBuff", speedSprite); yield return new WaitForSecondsRealtime(duration); character.speed -= speedModifier; } private int PercenttageCalculator(int baseStat, int modifier) { return Mathf.FloorToInt(baseStat * (modifier / 100.0f)); }
Bojan Pađenjoined anevent
Unity社区直播 - 零基础系列 Create with Code
ONLINE EVENT
2:00 PM - 3:00 PM July 2, 2020 (Local: UTC-4)
14:00 - 15:00 Jul 2, 2020 (Local: UTC-4)
1696 Participants
Bojan Pađen
updated the webgl
May 31, 2020
GoCarts
My latest microgame.
G
2 months ago
cool game, just keep it up
About Me
I want to learn and expand knowledge of Unity technologies.
Fiskal 1
QA - Team Lead
Open University Zagreb
Secondary economic school
See more
Certifications (0)
Import
See all
Bojan Pađen's liked projects (6)
Following (1)
Follower (1)
Following Companies (0)
Not following anyone yet