Results 1 to 2 of 2

Thread: How to rotate my sprite?

  1. #1
    Serf
    Join Date
    Jan 2011
    Posts
    3

    Smile How to rotate my sprite?

    Hello I'm 16 years o/ I'm trying to make a game, but I'm having trouble rotating my 2D sprite.

    Is there any way easy?

  2. #2
    Serf
    Join Date
    Jan 2011
    Posts
    3

    Default

    Ah I discovered, the answer is this:
    Code:
      
     CL_GraphicContext gc = Janela.get_gc();
     CL_Sprite neko(gr,"neko.jpg");
     CL_Angle teste;
    	 
    neko.set_angle(teste.from_degrees(20));
    Thank for help

Similar Threads

  1. Pinch/Zoom and Rotate Mechanics
    By BigBMan in forum Proton SDK
    Replies: 3
    Last Post: 01-05-2011, 07:16 AM
  2. make child rotate too.
    By speeder in forum Novashell Game Creation System
    Replies: 0
    Last Post: 05-09-2010, 04:50 AM
  3. HSV Sprite Example
    By Judas in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 08-23-2009, 07:46 PM
  4. Get a Sprite PixelData?
    By catch22 in forum Official ClanLib SDK Forums
    Replies: 3
    Last Post: 07-27-2009, 11:48 PM
  5. sprite question?
    By Mahdi in forum Official ClanLib SDK Forums
    Replies: 0
    Last Post: 09-07-2008, 12:18 PM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •