Similar Posts

2 Comments

  1. Hello. Thank you so mutch for a nice tutorial. I think i do something wrong. Maybe you coud help me?

    I tried to put this in but i just got this error message. Coud you be a bit more specific please.

    Object: oPlayer Event: Game Start at line 29 : unknown function or script tile_set_position
    Object: oPlayer Event: Game Start at line 22 : unknown function or script tile_get_id
    Object: oPlayer Event: Game Start at line 23 : unknown function or script tile_get_x
    Object: oPlayer Event: Game Start at line 24 : unknown function or script tile_get_xscale
    Object: oPlayer Event: Game Start at line 25 : unknown function or script tile_get_y
    Object: oPlayer Event: Game Start at line 26 : unknown function or script tile_get_yscale
    Object: oPlayer Event: Game Start at line 28 : unknown function or script tile_set_scale
    Object: oPlayer Event: Game Start at line 19 : unknown function or script tile_get_count

    1. Thanks for stopping by. It looks like you’re using GameMaker Studio 2. This post is (was?) valid for GameMaker Studio 1.x only. Tiles manipulation in GameMaker Studio 2 is fundamentally different as it now uses “real” Tilesets and Tiles Layers. The functions I use in this post have been removed and I still haven’t had time to research a way to achieve similar results in GMS 2. If I come across a conceptually similar solution, I’ll write about it.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.