dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: flash lite 1.1 game - character not moving correctly

  1. #1
    Junior Member
    Join Date
    Apr 2009
    Posts
    4

    Question flash lite 1.1 game - character not moving correctly

    Hi, the game Im working on right now is modify from a tutorial game found on web - http://www.republicofcode.com/tutorials/flash/litegame/

    this is the original code:

    //Essential Variables
    score = 0;
    lives = 3;

    //Positions the player on the stage.
    new_player._x=0;
    new_player._y=260;
    new_player.myPosition=1;


    I try to load variables from external file, and change player character everytime I change the value of variable 'player', so I modify the code to:

    external file: &player=1&score=0&lives=3

    //Essential Variables
    score = Number(score);
    lives = Number(lives);

    switch(player){
    case "1":
    loadMovie("player1.swf","new_player");
    break;
    case "2":
    loadMovie("player2.swf","new_player");
    break;
    case "3":
    loadMovie("player3.swf","new_player");
    break;
    case "4":
    loadMovie("player4.swf","new_player");
    break;
    }


    variables are loaded successfully but the player is not moving correctly after modified the code. anyone knows wht's the problem?

  2. #2
    Junior Member
    Join Date
    Apr 2009
    Posts
    4
    one thing to add on, loadVariables() is not working in imode here.. anyone has ideas how to load external data to a imode phone?

    thanks

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center