GDC meanwhile takes place from March 19th to March 23rd. Various games jams to fall during this period include the Train Jam, The Heart Jam and the Not Going to GDC Game Jam. If those paths should be followed only once and the game goes to something else, this instance creation code would be even simpler : path_start(p1,0,0) // or p2, or p3 depending on which instance it is.YoYo Games will hand out free two-week unrestricted licences to its 2D game development engine GameMaker 2 at GDC and various game jam’s from March 14th to March 28th. That is assuming you may need to restart the path later : you could then do this simply using my_path. So either you change the way those obj_ball are placed in the game, or use a way to identify which instance is which, for instance with the instance creation code.Īctually, I think a simpler way than any that was proposed is to just use the creation code for each instance like that : my_path=p1 // or p2 or p3 : this line is different for each instance Judging by your answer, I have a feeling you're in the other situation and you want this path_start to happen as soon as the room is loaded. ![]() An other object (obj_control, obj_player, or whatever) would do that at a moment I couldn't know myself : could be on game start within a create event or on the contrary it could be conditioned by a key press or anything else. No, this part is in case your objects should get created from code rather than from the room editor. If you want the path to be started right away, you can make it start in an alarm event that you would set to 1 in the create event : it would let the instance creation code to be executed between create event and alarm event. / then in your obj_ball, when you want the path to start, but NOT in the create event : Now if those objects are placed in the room editor, the I'd suggest using the instance creation code (right click on instance > creation code) That's where you would specify which path this instance will follow : /// instance creation code / then in your obj_ball, when you want the path to start : With(instance_create(x,y,obj_ball)) my_path=p3 With(instance_create(x,y,obj_ball)) my_path=p2 With(instance_create(x,y,obj_ball)) my_path=p1 But the exact way of implementing this (or his) depends on how you place those objects in the room in the first place (by code with some instance_create, or directly in room)īy code it can be as simple as : /// where you create those objects The next gm(48) will take place on Oct 20, 2018.Īn alternative/improvement to W3REWOLF's idea would be to store the path index directly. The gm(48) is a casual, fun game jam that helps you to learn and grow as a developer. Shining a light on high-quality projects and resources created by our community.įor more than 8 years, the tight-knit community of /r/gamemaker has run the game jam gm(48) for GameMaker developers of all ages and experience levels. Share the latest pictures and videos of your gameĪre you in need of motivation? Then take a stab at these creative challenges. Scheduled content ScheduleĪsk questions, ask for assistance or ask about something else entirely.ĭiscuss game design and game development. Join in the conversation, get help with any issues you might have and connect with your fellow developers! We also have a Steam Group for playing games. r/gamemaker sponsors three chat-rooms: IRC, a Discord server, and a Slack team.
0 Comments
Leave a Reply. |