Discussions

SmileBASIC Community

DereKDerekninja555

10/01/2016 1:39 PM ·Spoilers

Open Closed

HP Bar Help

So for one of the games I'm working on (try and guess which) needs a health bar. The player has 20 health. 20/20 health would look like this [][][][][][] (pretend that is yellow for the []) And if you get hit lets say 7 damage it would look like this [][][]()()() (() means red) PLS HELP

Advertisement

Comment

This post has no comments.

  • same i need it too for a random undertale clone sadly i dont know but i wish i can help

    Yeahs0
    Played
  • ACLS:HP=20:RF=0 FOR I=0 TO 19 VSYNC 1:GFILL 80+I*4,8,80+I*4+2,15,#YELLOW NEXT I LOCATE 2,3:?"Pressing A button gives you 7 damages." WHILE TRUE VSYNC 1 IF(BUTTON(2)AND #A)!=0 && RF<=0 THEN RF=7 IF RF>0 THEN DEC HP,(HP>0):DEC RF GFILL 80+HP*4,8,80+HP*4+2,15,#RED ENDIF WEND

    Yeahs0
  • How wouldy you add defens?

    Yeahs1

Add a Comment

You must sign in to post a comment.

Sign in using a Nintendo Network ID to connect to users around the world by writing posts and comments and by giving Yeahs to other people's posts. You can create a Nintendo Network ID using your Wii U console or your system in the Nintendo 3DS family.

Use of Miiverse Details about Miiverse

Report Violation to Miiverse Administrators

You are about to report a post with content which violates the Miiverse Code of Conduct. This report will be sent to Nintendo's Miiverse administrators and not to the creator of the post.

Violation Type:

Post ID: 3DB-NBL7-EJ9-9E2H-4DX-MDYC

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: