Also in meinem Spiel habe ich links eine Bar die den Multiplikator anzeigt.
Jeh nach Höhe des Chars wird die auf die Bar die Anzeige gedrawt.
Hat viellicht jemand ein Ahnnung wie ich das so regeln kann, dass mir der Ram nicht so zugemüllt wird?
Alles anzeigen
Jeh nach Höhe des Chars wird die auf die Bar die Anzeige gedrawt.
Hat viellicht jemand ein Ahnnung wie ich das so regeln kann, dass mir der Ram nicht so zugemüllt wird?
Quellcode
- if obt_character_1.y < 1388 and obt_character_1.y > 1300
- {
- with (obt_multibar_lights_X0) instance_destroy();
- }
- if obt_character_1.y < 1300 and obt_character_1.y > 1032
- {
- global.scoreIncrease=1;
- instance_create(obt_multibar.x,obt_multibar.y,obt_multibar_lights_X0);
- with (obt_multibar_lights_X2) instance_destroy();
- }
- if obt_character_1.y < 1032 and obt_character_1.y > 830
- {
- global.scoreIncrease=2;
- instance_create(obt_multibar.x,obt_multibar.y,obt_multibar_lights_X2);
- with (obt_multibar_lights_X4) instance_destroy();
- }
- if obt_character_1.y < 830
- {
- global.scoreIncrease=4;
- instance_create(obt_multibar.x,obt_multibar.y,obt_multibar_lights_X4);
- }