Tile swapping

  • #1, by william-scarrattTuesday, 27. July, 18:54 A month ago
    Hi, I've been trying to create a puzzle where i can swap tiles. I have put all of the objects in place with on/off conditions and set it so the cursor becomes the tile, however I can't figure out how to get the tiles to switch without just disapearing.


    2 Posts

  • #2, by NigecWednesday, 28. July, 12:43 A month ago
    Values would be better, maybe have the tiles in an animation, set the value to a frame number, I haven't tried myself but thats what I would do, I've done lock dials which swaps an image

    Try the Discord channel,you will probably get help a lot quicker

    Key Killer

    589 Posts

  • #3, by afrlmeWednesday, 28. July, 14:17 A month ago
    Values would definitely be the way to go. It's really complicated with conditions because they only have the option to set them as true or false, which would mean you would need multiple conditions for every single tile & a ton of if queries. With values you only need a single value per tile slot.

    Also you don't really need to animate at all. You can do everything purely with scene objects & values because you can assign the same value to multiple scene objects, which means you could specify which image to show in which tile. Don't get me wrong, it's still complicated because you need to check whether or not x tile can be moved to y tile position, etc.

    I don't know enough information about the mechanics of what you are trying to do, so I can't really provide much help beyond what I've just provided you with. Maybe a link to a youtube video with a similar puzzle in another game would help provide a better understanding of exactly what you are wanting to do.

    & as Nigec said, I highly recommend joining our discord server as Simon, Sebastian, myself, & the regular posters are all a lot more active on there.


    7005 Posts

  • #4, by william-scarrattThursday, 29. July, 21:03 A month ago
    Thanks, I didnt think about values. I'll try that.


    2 Posts

Write post