muzha110 发表于 2009-3-16 11:31:35

求3DGS中关于鼠标的关键词,定义方法(A6)

如题!

最好是有例子

draug 发表于 2009-7-23 15:37:02

查Gamestudio Manual手册

范例
function handle_movement()
{
   
    IF (my.state_machine == state_death) { my.enable_scan = off; my.passable = on; my.entity_type = null; return; }

    handle_target();

    IF (player == my) { handle_player_input(); } ELSE { handle_ai_input(); }

    my.attack_delay = move_variable(my.attack_delay,0,1);

    IF (my.push_x != 0 || my.push_y != 0) && (my.velocity_x == 0 && my.velocity_y == 0)
      {
      my.velocity_x += my.push_x;
      my.velocity_y += my.push_y;
    }
    process_state_machines();
    process_animation();
    process_movement();

    handle_healthbar();

    IF (player == my) { handle_camera(); }
}

xavierwoo 发表于 2009-9-15 06:38:52

3dgs的官网上面有个教程叫workshop,里面讲了的
页: [1]
查看完整版本: 求3DGS中关于鼠标的关键词,定义方法(A6)