Ticket #32770

敵同士を重ならないようにする

Date d'ouverture: 2014-01-01 17:05 Dernière mise à jour: 2014-01-01 22:49

Rapporteur:
Propriétaire:
État:
Atteints
Composant:
Priorité:
8
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
Aucun

Détails

敵同士を重ならないようにする

Ticket History (2/2 Histories)

2014-01-01 17:05 Updated by: syun77
  • New Ticket "敵同士を重ならないようにする" created
2014-01-01 22:49 Updated by: syun77
  • Résolution Update from Aucun to Fixed
  • État Update from Ouvert to Atteints
  • Ticket Close date is changed to 2014-01-01 22:49
Commentaire
  1. // 他の敵と重なっていたら少しずれる
  2. var _id = instance_place(x, y, obj_enemy);
  3. if(_id != noone)
  4. {
  5. // 他の敵と重なっている
  6. // 逆方向に1ドットずらす
  7. var dir = point_direction(x, y, _id.x, _id.y) + 180;
  8. var dx = lengthdir_x(1, dir);
  9. var dy = lengthdir_y(1, dir);
  10. x += dx;
  11. y += dy;
  12. }

という記述で対応

Attachment File List

No attachments

Modifier

Please login to add comment to this ticket » Connexion