登入就可以儲存進度同賺分!
Stencyl Tutorial 4: Mouse-Based Shooting

Stencyl Tutorial 4: Mouse-Based Shooting

by Abigayl

Loading ad...

Stencyl Tutorial 4: Mouse-Based Shooting

評價:
3.9
推出時間: December 17, 2011
上次更新: December 17, 2011
開發者: Abigayl

Stencyl Tutorial 4: Mouse-Based Shooting 關聯標籤

簡介

暫時未有呢隻game介紹。

留言

0/1000
Abigayl avatar

Abigayl

Dec. 17, 2011

85
5

Please rate this comment up if you would like to see more tutorials about Stencyl (and please comment yourself about what you would like me to cover) so that I know what you are interested in seeing. Thank you.

ItsFunToLose avatar

ItsFunToLose

Jan. 02, 2012

20
1

Hi Abigayl, I want to start off saying I love your tutorials, they're very helpful.

I have a problem with the way you've coded the HP attribute. I have followed your coding exactly, but bullets subtract 1 or 2 health from enemy targets, and very rarely even 3 HP per bullet. ( and I noticed this problem in your demo as well, its just masked by the large number of bullets, and thus hard to notice if one bullet is doing 1 or 2 damage to a 3 HP target.)

Is there any way to code the HP so that this does not occur? any insight into why this is happening at all?

Recap: I set enemy HP to 10. I code so that if HP > 1 to decrement HP by 1. else kill.
I print the HP value rather than a picture bar. about 40% of the time, One bullet takes enemy from 10 HP to 8 HP. Rest of the time, HP from 10 to 9. Halp.

netgeneraal avatar

netgeneraal

Dec. 29, 2011

17
1

I would like to know how to make an upgrade system like that you can buy auto shooter.

Abigayl avatar

Abigayl

Jul. 24, 2012

6
0

Thank you all for your ratings! This is now a "legendary" tutorial (over 4.0 with 500+ votes). :)

lukabalen avatar

lukabalen

Jan. 08, 2012

15
1

I would like to see and learn how to make a realistic gun. How to add recoil, gravity to bullets, knockback and other stuff.