Advanced Classroom
2013.09.17 09:44

나뚜루's - Sprite 클래스 파헤치기 [3]

Views 1730 Votes 0 Comment 2
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print Update Delete
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print Update Delete
기본 함수

dispose

스프라이트를 해방합니다. 즉, 스프라이트를 완전히 없애버립니다.
없애버린 스프라이트는 재기능을 할 수 없고, 또한 다시 살릴 수도 없습니다.
스프라이트를 다시 살리기 위해서는 새로운 스프라이트를 만들어야 합니다.


disposed?

스프라이트가 해방되었다면 true를, 그렇지 않다면 false를 돌려줍니다.
예) sprite = Sprite.new
      sprite.disposed? # => false
      sprite.dispose
      sprite.disposed? # => true


viewport

스프라이트에 사용된 뷰포트입니다. (뷰포트를 바꿀 수는 없습니다.)

*뷰포트를 바꾸기 위해서는 사용된 뷰포트를 리셋해야합니다.
예) sprite = Sprite.new(Viewport.new(0, 0, 640, 480))
      # 뷰포트를 x = 3, y = 8, width = 10, height = 30으로 바꾸고 싶다면, 뷰포트의 구형(rect)를 바꿔야 합니다.
      sprite.viewport.rect.set(3, 8, 10, 30)
      # 뷰포트의 z좌표를 바꿉니다.
      sprite.viewport.z = 100


flash(색상, 프레임)

스프라이트를 지정한 색상으로 바꿉니다. 프레임에 따라 바뀌는 시간이 결정됩니다. 
색상이 nil일 경우, 스프라이트 색상이 없어집니다.
(스프라이트 색상이 없어진 것과 dispose된 스프라이트와는 완전히 다릅니다.)


update

flash 함수를 실행했을 경우 꼭 실행해야 하는 함수입니다.
이 함수는 flash 함수를 실행했을 경우 주기적으로 업데이트시켜 스프라이트 색상을 바꿉니다.
flash 함수를 실행하지 않았을 경우에는 굳이 이 함수를 실행시킬 필요가 없습니다.
?

  1. 게임제작강좌 A-Z 색인 (2016.1.24 ver)

    Date2016.01.12 CategoryBeginner Classroom By천무 Views8249 Votes1
    read more
  2. [야매 알만툴 MV 강좌] - 연출과 기능. 두마리 토끼를 동시에.

    Date2018.09.10 CategoryBeginner Classroom By케이디 Views3006 Votes0
    Read More
  3. RPG Maker MV에서 도트 느낌의 폰트 사용하기

    Date2018.07.15 CategoryBeginner Classroom By러닝은빛 Views5170 Votes1
    Read More
  4. [ MV ] 1-1 " RPG MAKER MV에 대하여 알아보자! "

    Date2018.07.01 CategoryBeginner Classroom By수성의물 Views2098 Votes0
    Read More
  5. [DLC 매뉴얼] GENE 도움말 한글화 Part.3 이용규약

    Date2018.04.25 CategoryBeginner Classroom By이니군 Views1057 Votes0
    Read More
  6. [DLC 매뉴얼] GENE 도움말 한글화 Part.2 이벤트 타입과 메뉴 바 컨텐츠

    Date2018.04.25 CategoryBeginner Classroom By이니군 Views1071 Votes0
    Read More
  7. [DLC 매뉴얼] GENE 도움말 한글화 Part.1 씬 빌더의 개요와 씬빌더 시작하기

    Date2018.04.24 CategoryBeginner Classroom By이니군 Views2442 Votes1
    Read More
  8. 느무느무 쉬운 XAS강좌!(VXA용)1.다운로드 및 규정.

    Date2017.11.28 CategoryBeginner Classroom By약빨은ㄱㅏㅅㅣ Views1760 Votes0
    Read More
  9. 저 같은 사람 생기지 말라고 만드는 XAS(액션알피지[액알])강 좌!(VX ACE용)

    Date2017.11.28 CategoryBeginner Classroom By약빨은ㄱㅏㅅㅣ Views1576 Votes0
    Read More
  10. [MV] Iavra Splash Video(스플래시/인트로영상 제작 시 스킵기능 부여 플러그인)

    Date2017.09.11 CategoryBeginner Classroom By이니군 Views1555 Votes0
    Read More
  11. RPG MAKER MV Tool Program-MADO 설치 및 적용기

    Date2017.09.08 CategoryBeginner Classroom By이니군 Views2662 Votes0
    Read More
  12. 커먼이벤트로 은행시스템 만들기(23:00 그림 링크 재수정)

    Date2017.08.28 CategoryBeginner Classroom By이니군 Views1890 Votes0
    Read More
  13. [RMMV] 크로노 엔진(Chrono Engine) 플러그인 사용법

    Date2017.07.16 CategoryAdvanced Classroom By러닝은빛 Views4069 Votes2
    Read More
  14. 네코플에서 VXA 선택지 잘리는 버그 해결하는법

    Date2017.06.22 CategoryIntermediate Classroom By심심치 Views1325 Votes2
    Read More
  15. 변수를 이용한 식물 재배

    Date2017.05.28 CategoryBeginner Classroom ByMoonJ Views3615 Votes2
    Read More
  16. 누구나 쉽게 따라할 수 있는 액션/슈팅 이벤트 만들기!

    Date2017.01.26 CategoryBeginner Classroom By이제리아 Views4762 Votes3
    Read More
  17. RPG란 무엇인가?가 하는 강의-1편:대쉬 속도와 걷는 속도를 어떻게 바꾸는가?-

    Date2016.10.31 CategoryIntermediate Classroom ByRPG란무엇인가? Views2591 Votes0
    Read More
  18. 쯔꾸르 게임을 네코플레이어에 최적화 시켜보자! # 해상도 편

    Date2016.04.17 CategoryIntermediate Classroom By양갱님 Views36612 Votes10
    Read More
  19. 게임의 퀼리티를 높이자! 3편-맵배치

    Date2016.04.08 CategoryBeginner Classroom Byifeve Views5592 Votes2
    Read More
  20. Input 객체의 키코드 확장

    Date2016.04.05 CategoryBeginner Classroom By러닝은빛 Views1722 Votes0
    Read More
  21. 초보가쓰는 초보용 Rpg게임 만들기 (xp)

    Date2016.03.13 CategoryBeginner Classroom ByMarine Views6522 Votes0
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 Next
/ 10


[privacy statements] | [Terms of Use] | [Contact us] | [Sponsorship] | [Indiside History]

Copyright © 1999 - 2016 INdiSide.com/CL3D Co., Ltd. All Rights Reserved.
Owner : Chunmu(Jiseon Lee) | kernys(Wonbae Kim) | Sasinji(Byungkook Kim)