Clicking to break / build

Heya,

I've tried out the extension (Awesome job btw), and it did help a-lot when it came to adding worlds into my game, but i'm having one problem.

I was wondering how you would go about breaking / building instances via the mouse and instead of a 2D Facedown, a 2D Platformer (Not sure if the style of the game makes a difference).

Anyway, awesome job on v2, and Thanks ;)

Replies (10)

Last message on 28 Dec 2017

Size43 (Administrator) on 28 Dec 2017, 10:48:45
The code for placing / removing blocks is in the step event of obj_player. (starting at line 13)

Just move that code to a global mouse press event or something similar (and replace x with mouse_x, and y with mouse_y obviously)
PenguinPalaceGame (Topicstarter) on 28 Dec 2017, 11:19:40
Hey, thanks for the reply.

Tried this out but still can't seem to get it to work, any idea's.

Also, if one player enters the world whilst another player is there, the player that was there first will crash.
Size43 (Administrator) on 28 Dec 2017, 11:23:35
Also, what does the error say?
Size43 (Administrator) on 28 Dec 2017, 11:23:23
What does your code look like now?
PenguinPalaceGame (Topicstarter) on 28 Dec 2017, 11:36:13
The block breaking is just all of the code from line 13 but I removed the keyboard presses (obviously) and the game just crashes with no error code. Just starts saying the program has stopped working
Size43 (Administrator) on 28 Dec 2017, 12:41:53
That can be either a GameMaker Server bug or a GameMaker bug. Can you make a dump file and mail it to gamemakerserver@outlook.com?

To create a dump file, right click the game in task manager and click on 'Create dump file'
PenguinPalaceGame (Topicstarter) on 28 Dec 2017, 13:08:33
Sent the email with the .DMP file.
PenguinPalaceGame (Topicstarter) on 28 Dec 2017, 12:54:13
Sure.

I'll send it via my personal email
PenguinPalaceGame (Topicstarter) on 28 Dec 2017, 10:44:09
Oh, another thing I realized is if the world is permanent once it's made, because I noticed that on the example, it disappears after a while so is this just it being drawn or is it actually being destroyed after a while.
Size43 (Administrator) on 28 Dec 2017, 10:51:04
The world is saved every 30 seconds (see obj_world_controller, alarm[0]). You probably had some unsaved changes that got lost.