×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    76

    Question Problem while using Sprite

    Hi friends,
    I'm using Sprite for 2D animation.Which works fine(same code)in SonyEricsson's WirelessToolkit but not in Sun's WirelessToolkit.
    The 2D animation not display on the screen( while only simple drawImage works fine )but when i used ,

    //to gets the next image in the current sequence of coupleSprite
    coupleSprite.nextFrame();

    //Sets this Sprite's position
    coupleSprite.setRefPixelPosition(coupleX,coupleY);
    //to gets the next image in the current sequence of coupleSprite
    coupleSprite.paint(g);

    in lieu of the lines that painted the couple image.

    g.drawImage(coupleImg,coupleX,coupleY,Graphics.HCENTER|Graphics.BOTTOM);

    Note:In the start() method i've define that,

    coupleImg = Image.createImage("/couple.gif");

    coupleSprite = new Sprite(coupleImg,10,10);

    Can anyone give some idea to resolved this issue or any suggetions to try something else?
    Does same code makes diffrence in two diffrent Wireless Toolkit?if so what could be the coz?

    Regards,

    Sachin Warang.

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Posts
    516

    Re: Problem while using Sprite

    Hi sachin,

    Does ur emulator support MIDP2.0????


    Wang

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    76

    Question Re: Problem while using Sprite

    Yes i'm developing this application in having MIDP 2.0 and CLDC 1.1 in Wireless Toolkit.

    Regards,
    Sachin Warang.

Similar Threads

  1. J2ME: Problem in Nokia Solution for a software problem
    By mte01 in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2011-06-08, 05:52
  2. problem when stop playing video on 3650 and try to play again
    By niko86 in forum Mobile Java General
    Replies: 5
    Last Post: 2007-08-03, 07:40
  3. Ringing problem with Nokia N70
    By DVogdos in forum Audio
    Replies: 2
    Last Post: 2007-06-26, 20:49
  4. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  5. J2ME: Problem in Nokia Solution for a media problem
    By mte01 in forum Mobile Java Tools & SDKs
    Replies: 0
    Last Post: 2005-08-12, 11:30

Posting Permissions

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