How can I make a wiring system like minecraft? Not in 3D, but for a platformer?
a simple one, like, if we have a switch, all the wires connected to it will be active if the switch is active too... same it its not active
- Game Maker Community
- → Viewing Profile: Topics: 12warr12
12warr12
Member Since 30 Oct 2009Offline Last Active Nov 24 2012 04:38 PM
Community Stats
- Group GMC Member
- Active Posts 678
- Profile Views 7480
- Member Title GMC Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Male
-
Location
Portugal
-
Version
Unknown
22
Onwards and Upwards!
Latest Visitors
Topics I've Started
wiring
13 September 2012 - 12:45 PM
Right way to use particles
13 September 2012 - 07:53 AM
Whats the right way to use particles? At the moment I have about 12 particles on my game, and each have a part system... like this:
Is this wrong?
//Create Event atkS = part_system_create(); atkT = part_type_create(); part_type_shape(atkT,1); part_type_size(atkT,0.50,0.50,0,0); part_type_color3(atkT,255,255,16777215); part_type_alpha3(atkT,0.50,0.50,0); part_type_speed(atkT,5,10,-0.50,0); part_type_life(atkT,0,20); part_type_direction(atkT,-20,20,0,0); part_type_orientation(atkT,0,360,0,0,1); part_type_gravity(atkT,0,270); part_type_scale(atkT,0.30,0.30); part_type_blend(atkT,1); part_system_depth(atkS,0); atkS = part_emitter_create(atkS);
Is this wrong?
string_width problems
12 September 2012 - 09:07 AM
I'm having trouble using string_width:
What happens:
On the inventory, wich uses the same way to draw the name, it works perfectly, now on Chests, it draws like this:


GodLike draws properly, and Superior doesn't, why? They both use the same code
btw: I've changed halign of the text, and it works if I use fa_right, but I want fa_center... and with fa_center it gives too much space
//draw the normal name draw_text_outline(mouse_x,mouse_y+20,name,c_white,c_black); //draw grade draw_text_outline(mouse_x-string_width(name)-5,mouse_y+20,string(grade),c_lime,c_black);
What happens:
On the inventory, wich uses the same way to draw the name, it works perfectly, now on Chests, it draws like this:


GodLike draws properly, and Superior doesn't, why? They both use the same code
btw: I've changed halign of the text, and it works if I use fa_right, but I want fa_center... and with fa_center it gives too much space
surfaces
10 September 2012 - 08:23 AM
I'm having some trouble using surfaces to make lights:
draw event
I'm using views, and the surface doesn't work properly when the player starts to move around, and the view follows him, the surface walks around the screen, how to fix this?
draw event
surface_set_target(lights); draw_clear_alpha(make_color_hsv(0,0,darkness),1); draw_set_blend_mode(bm_add); draw_sprite_ext(spr_light_256, 0, mouse_x, mouse_y, 1, 1, 0, make_color_rgb(255,221,128), 1) surface_reset_target(); draw_set_blend_mode_ext(9,1); draw_surface_ext(lights,view_xview+0,view_yview+0,1,1,0,c_white,1); draw_set_blend_mode(0);
I'm using views, and the surface doesn't work properly when the player starts to move around, and the view follows him, the surface walks around the screen, how to fix this?
change persistent rooms settings
07 September 2012 - 03:31 PM
How can I change the view settings of a persistent room?
I want to change it before the room starts... so I have a room that sets the room view like this:
this works if the room isn't persistent, but I need it to work with persistent rooms, what can I do?
I want to change it before the room starts... so I have a room that sets the room view like this:
room_set_view(rm_test,0,true,0,0,global.View_w,global.View_h,0,0,global.View_w,global.View_h,global.View_w / 2,global.View_h / 2,-1,-1,obj_player);
this works if the room isn't persistent, but I need it to work with persistent rooms, what can I do?
- Game Maker Community
- → Viewing Profile: Topics: 12warr12
- Privacy Policy
- GMC Rules and Forum Rules ·



Find content