ich habe diesen code hier;
Alles anzeigen
in mein spiel eingefügt und wollte nee flamme machen nurn hab ich das problem das es sich immer nicht zur maus sondern in richtung x+? und y+? bewegt wenn ich zum screen punkt x=0 y=0 gehe kommt sie der/dem Flamme näher das is doch irgentwie komisch O.o
GML-Quellcode
- {
- ti = part_type_create()
- part_type_shape(ti,pt_shape_pixel)
- c1 = make_color_rgb(255,0,0)
- c2 = make_color_rgb(245,118,24)
- c3 = make_color_rgb(225,194,70)
- part_type_color3(ti,c1,c2,c3)
- part_type_life(ti,10,30)
- part_type_step(ti,-10,0)
- part_type_speed(ti,1,10,2,0)
- part_type_direction(ti,60,120,230,0)
- IM = part_system_create()
- part_system_draw_order(IM,false)
- part_system_position(IM,x,y)
- part_particles_create(IM,mouse_x,mouse_y,ti,20)
- a = current_second mod 4+1
- if(a = 5)
- part_system_destroy(IM)
- part_type_destroy(ti)
- }
in mein spiel eingefügt und wollte nee flamme machen nurn hab ich das problem das es sich immer nicht zur maus sondern in richtung x+? und y+? bewegt wenn ich zum screen punkt x=0 y=0 gehe kommt sie der/dem Flamme näher das is doch irgentwie komisch O.o