Discussions

SmileBASIC Community

Ep17EmPx17

10/13/2016 2:08 AM ·Spoilers

Open Closed

Sprite lighting?

Is it possible to make a transparent sprite brighter? Or any sprite at all?

Advertisement

Comment

This post has no comments.

  • #SPADD allows it. ACLS:GPAGE 0,4:GFILL 0,0,63,63,0:GCIRCLE 32,32,31,#WHITE:GPAINT 32,32,#WHITE:FOR I=0 TO 2:SPSET I,0,0,64,64,1 OR #SPADD:SPHOME I,32,32:SPCOLOR I,RGB(96,255,255,255):NEXT I:A=0:R=0:D=1 WHILE TRUE:VSYNC 1:FOR I=0 TO 2:X=R*COS(A+2*I*PI()/3):Y=R*SIN(A+2*I*PI()/3):SPOFS I,X+200,Y+120,0:NEXT I:R=R+D:D=D*((ABS(R)<=100)-(ABS(R)>100)):A=A+1/32:A=A-2*PI()*(A>=(2*PI())):WEND

    Yeahs2
  • Sorry for the late response and thanks that looks complicated i needed to know how to do it because i wanted my game to have lighting effects ex: There is a lamp and i have transparent sprite over it so it will be like its glowing.

    Yeahs0
    Played
  • Like this. Now i need to type that code you gave me to make the glowing part brighter.

    Yeahs0
    Played
  • i Forgot the screenshot......

    Yeahs0
    Played
  • I'm sorry to make you worried for my complex program. I cannot attach screenshot here because of region lock. I'd like to show you my tiny program stuff instead. Could you download [4BE45EQE] and refer to "EX_SPOT" and "EX_FIREFLY"? And please download it asap because I'll keep it on the cloud server temporarily.

    Yeahs1
  • Ok i got it.

    Yeahs0
    Played

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-9E2J-3WU-TLCL

Report Violation to Miiverse Administrators

You cannot report posts made automatically by a software title.

Edit Post

Select an action: