找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 4038|回复: 2

[3D工具&引擎] 求3DGS中关于鼠标的关键词,定义方法(A6)

[复制链接]
发表于 2009-3-16 11:31:35 | 显示全部楼层 |阅读模式
如题!

最好是有例子
发表于 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(); }
}
发表于 2009-9-15 06:38:52 | 显示全部楼层
3dgs的官网上面有个教程叫workshop,里面讲了的
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|幻想森林

GMT+8, 2026-11-3 11:16 , Processed in 0.010633 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表