create account

#145 Fixing the Attack Button - Unity Tutorial by roundbeargames

View this thread on: hive.blogpeakd.comecency.com
· @roundbeargames ·
$4.98
#145 Fixing the Attack Button - Unity Tutorial
[![bvbfhx06f8.png](https://img.esteem.ws/bvbfhx06f8.png)](https://youtube.com/roundbeargames)

----

https://youtu.be/mfYj62Vs_Wo

Fixing the Attack Button - Unity Tutorial
GameDev Course by Roundbeargames
2.5D platformer

The attack button used to be based on seconds, which was a horrible idea because more than 1 attack could be triggered by a single press if they're quick. 

In this video, we fix the code so that a single press will always trigger a single attack. 

I'm turning off vsync because in most cases it feels like lag.

Files are available here:
https://drive.google.com/drive/folders/17Lfpa5r-3zeR1jaT0eJ4nqIR3pkU9ABE?usp=sharing

Download this project: 
https://github.com/RoundBearChoi/2.5D_Platformer_Unity

Tutorial playlist:
https://www.youtube.com/playlist?list=PLWYGofN_jX5BupV2xLjU1HUvujl_yDIN6

Custom animations designed by Wemakethegame:
https://www.wemakethegame.com

Custom character designed by Akishaqs:
https://assetstore.unity.com/publishers/12741

Any questions/comments? Join us on discord: 
https://discord.gg/RbxjBu3

Social
twitter: https://twitter.com/roundbeargames
facebook: https://facebook.com/roundbeargames17
steem: https://steemit.com/@roundbeargames
reddit: https://reddit.com/user/roundbeargames
linkedin: https://linkedin.com/in/roundbeargames-choi-15041a9a

Patreon:
https://www.patreon.com/roundbeargames

----

<center>

[![rblogo_up.png](https://cdn.steemitimages.com/DQmbGCND6J3XWjZuLbEmYVPtNwPNGNGZ5LYBYa1jSp3rCG6/rblogo_up.png)](https://steemit.com/@roundbeargames)
  
[![40_flogo_rgb_hex-brc-site-250.png](https://cdn.steemitimages.com/DQmThw7FJqwZR9axYs7TnsJdbu7iqo9zq1FhTLaSDqWMShd/40_flogo_rgb_hex-brc-site-250.png)](https://www.facebook.com/RoundBearGames17) [![40_ytlogo50.png](https://cdn.steemitimages.com/DQmZwv7R6QendHUsLf6216uu8Cp2w7MLAv6gByKSuxCxzHD/40_ytlogo50.png)](https://www.youtube.com/channel/UCAoJgVzDHnFDOQwC42raByg) [![40_twitter-logo-transparent-300x300.png](https://cdn.steemitimages.com/DQmaEWJVXdDvW9fXe2wAM6YzEbM81EoR7cewFCpV7AXw9vj/40_twitter-logo-transparent-300x300.png)](https://twitter.com/RoundBearGames) [![Discord-Logo-Color_40w.png](https://cdn.steemitimages.com/DQmRzuhdEeNaTzSGzbniP2366yLLoLBiMytiFTXZGJBEWQs/Discord-Logo-Color_40w.png)](https://discord.gg/RbxjBu3) [![steemitlogo_tr_35.png](https://cdn.steemitimages.com/DQmZn17ozfcwX6zrrToopdkFbsNWU7CBq1J2JtWC41sAc8e/steemitlogo_tr_35.png)](https://www.steemit.com/@roundbeargames) [![reddit 33.png](https://cdn.steemitimages.com/DQmUumcXT8QNt24J6FcMvL8tbyHcu22opbxgF2KySp43sj5/reddit%2033.png)](https://www.reddit.com/user/roundbeargames) [![linkedin32.png](https://cdn.steemitimages.com/DQmUjeR1NKESYntbqhShPga1huvHeJrQ46VoSmXkU2X9Qo9/linkedin32.png)](https://www.linkedin.com/in/roundbeargames-choi-15041a9a/)
<br>
#### Posted using [eSteem Surfer](https://esteem.app)
![mascot_logo_100.png](https://cdn.steemitimages.com/DQmRtCRvnh6DN278Shi3TCJH4xb8GCv3vdkVDZcccxUPMy4/mascot_logo_100.png)
</center>
πŸ‘  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 178 others
πŸ‘Ž  , ,
properties (23)
authorroundbeargames
permlink145-fixing-the-attack-button-unity-tutorial
categorygamedev
json_metadata{"links":["https://youtube.com/roundbeargames","https://youtu.be/mfYj62Vs_Wo","https://drive.google.com/drive/folders/17Lfpa5r-3zeR1jaT0eJ4nqIR3pkU9ABE?usp=sharing","https://github.com/RoundBearChoi/2.5D_Platformer_Unity","https://www.youtube.com/playlist?list=PLWYGofN_jX5BupV2xLjU1HUvujl_yDIN6","https://www.wemakethegame.com","https://assetstore.unity.com/publishers/12741","https://discord.gg/RbxjBu3","https://twitter.com/roundbeargames","https://facebook.com/roundbeargames17","https://steemit.com/@roundbeargames","https://reddit.com/user/roundbeargames","https://linkedin.com/in/roundbeargames-choi-15041a9a","https://www.patreon.com/roundbeargames","https://steemit.com/@roundbeargames","https://www.facebook.com/RoundBearGames17","https://www.youtube.com/channel/UCAoJgVzDHnFDOQwC42raByg","https://twitter.com/RoundBearGames","https://discord.gg/RbxjBu3","https://www.steemit.com/@roundbeargames","https://www.reddit.com/user/roundbeargames","https://www.linkedin.com/in/roundbeargames-choi-15041a9a/","https://esteem.app"],"image":["https://img.esteem.ws/bvbfhx06f8.png","https://cdn.steemitimages.com/DQmbGCND6J3XWjZuLbEmYVPtNwPNGNGZ5LYBYa1jSp3rCG6/rblogo_up.png","https://cdn.steemitimages.com/DQmThw7FJqwZR9axYs7TnsJdbu7iqo9zq1FhTLaSDqWMShd/40_flogo_rgb_hex-brc-site-250.png","https://cdn.steemitimages.com/DQmZwv7R6QendHUsLf6216uu8Cp2w7MLAv6gByKSuxCxzHD/40_ytlogo50.png","https://cdn.steemitimages.com/DQmaEWJVXdDvW9fXe2wAM6YzEbM81EoR7cewFCpV7AXw9vj/40_twitter-logo-transparent-300x300.png","https://cdn.steemitimages.com/DQmRzuhdEeNaTzSGzbniP2366yLLoLBiMytiFTXZGJBEWQs/Discord-Logo-Color_40w.png","https://cdn.steemitimages.com/DQmZn17ozfcwX6zrrToopdkFbsNWU7CBq1J2JtWC41sAc8e/steemitlogo_tr_35.png","https://cdn.steemitimages.com/DQmUumcXT8QNt24J6FcMvL8tbyHcu22opbxgF2KySp43sj5/reddit%2033.png","https://cdn.steemitimages.com/DQmUjeR1NKESYntbqhShPga1huvHeJrQ46VoSmXkU2X9Qo9/linkedin32.png","https://cdn.steemitimages.com/DQmRtCRvnh6DN278Shi3TCJH4xb8GCv3vdkVDZcccxUPMy4/mascot_logo_100.png"],"tags":["gamedev","opgaming","youtube","video","esteemapp"],"app":"esteem/2.2.0-surfer","format":"markdown+html","community":"esteem.app"}
created2019-09-23 13:07:33
last_update2019-09-23 13:07:33
depth0
children7
last_payout2019-09-30 13:07:33
cashout_time1969-12-31 23:59:59
total_payout_value2.549 HBD
curator_payout_value2.427 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,952
author_reputation192,109,263,238,027
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries
0.
accountesteemapp
weight1,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,853,604
net_rshares16,364,323,685,970
author_curate_reward""
vote details (245)
@bluengel ·
삢은 μ‹œν–‰μ°©μ˜€μ˜ 연속~^^ πŸ’™
삢은 λ“œλΌλ§ˆ~πŸ’™

μ˜€λŠ˜λ„ 수고 λ§ŽμœΌμ…¨μ–΄μš”~
항상 ν–‰λ³΅ν•œ πŸ’™ 였늘 λ³΄λ‚΄μ…”μš©~*^^*

!dramatoken

Posted using [Partiko Android](https://partiko.app/referral/bluengel)
πŸ‘  
properties (23)
authorbluengel
permlinkbluengel-re-roundbeargames-145-fixing-the-attack-button-unity-tutorial-20190923t131554301z
categorygamedev
json_metadata{"app":"partiko","client":"android"}
created2019-09-23 13:15:54
last_update2019-09-23 13:15:54
depth1
children1
last_payout2019-09-30 13:15:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length146
author_reputation129,269,571,273,945
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,853,819
net_rshares17,470,163,120
author_curate_reward""
vote details (1)
@roundbeargames ·
흐흐 μΊ„μ‚¬ν•©λ‹ˆλ‹€
이미 λ§Žμ€ μ‹œν–‰μ°©μ˜€λ₯Ό κ²ͺμ–΄μ™”μ§€λ§Œ 끝이 μ—†λŠ”λ“―μš”! ^γ……^
properties (22)
authorroundbeargames
permlinkpyacxa
categorygamedev
json_metadata{"tags":["gamedev"],"app":"steemit/0.1"}
created2019-09-23 13:17:36
last_update2019-09-23 13:17:36
depth2
children0
last_payout2019-09-30 13:17:36
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length39
author_reputation192,109,263,238,027
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,853,864
net_rshares0
@dramatoken ·
<center>
  <img src="https://i.imgur.com/5FTrFXt.png" />
  <p>Such drama, you've earned a DRAMA!</p>
  <p><sup>To view or trade <code>DRAMA</code> go to <a href="https://steem-engine.com/?p=market&t=DRAMA">steem-engine.com</a>.</sup></p>
</center>
properties (22)
authordramatoken
permlinkre-roundbeargames-145-fixing-the-attack-button-unity-tutorial-20190923t132233001z
categorygamedev
json_metadata{"app":"plucky/0.0.1","drama_trx_id":"8ba9828f934a4b6483286072ea896edf62f2b8c3"}
created2019-09-23 13:22:33
last_update2019-09-23 13:22:33
depth1
children0
last_payout2019-09-30 13:22:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length248
author_reputation12,383,329,875,029
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,853,991
net_rshares0
@drotto ·
<p>This post has received a 1.56 % upvote from @drotto thanks to: @sbi-booster.</p>
properties (22)
authordrotto
permlinkre-roundbeargames-145-fixing-the-attack-button-unity-tutorial-20190923t133030196z
categorygamedev
json_metadata{"tags":["gamedev"],"app":"drotto/0.0.5pre2"}
created2019-09-23 13:30:30
last_update2019-09-23 13:30:30
depth1
children0
last_payout2019-09-30 13:30:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length84
author_reputation419,916,705,599
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,854,173
net_rshares0
@filotasriza3 ·
kick him in the nuts :P
properties (22)
authorfilotasriza3
permlinkpyagqk
categorygamedev
json_metadata{"tags":["gamedev"],"app":"steemit/0.1"}
created2019-09-23 14:39:54
last_update2019-09-23 14:39:54
depth1
children1
last_payout2019-09-30 14:39:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length23
author_reputation194,716,812,618,710
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,856,113
net_rshares0
@roundbeargames ·
lol shattered dreams?
properties (22)
authorroundbeargames
permlinkpyagyb
categorygamedev
json_metadata{"tags":["gamedev"],"app":"steemit/0.1"}
created2019-09-23 14:44:42
last_update2019-09-23 14:44:42
depth2
children0
last_payout2019-09-30 14:44:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length21
author_reputation192,109,263,238,027
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,856,251
net_rshares0
@opgaming ·
This post has been upvoted by @opgaming.  We like what you're posting, and we want to reward our members who produce quality content.  Keep up the good work!<br />If this sounds like the sort of group you want to be a part of, click the image below!  We're too OP to be put down!<br /><center>[![OPG_2.png](https://ipfs.busy.org/ipfs/QmU7n7iZQJjvfh2NrhHRFSeAT9LBDXUmszTZ2cDEBTmsKu)](https://discord.gg/zTe8ySf)</center>
properties (22)
authoropgaming
permlinkopgaming-re-roundbeargames145-fixing-the-attack-button-unity-tutorial
categorygamedev
json_metadata""
created2019-09-23 13:51:09
last_update2019-09-23 13:51:09
depth1
children0
last_payout2019-09-30 13:51:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length419
author_reputation1,472,881,395,460
root_title"#145 Fixing the Attack Button - Unity Tutorial"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id90,854,695
net_rshares0