Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Math 3 space rpg template!
Started by thedorwaytohell Dec 02 2019 04:40 AM

No replies to this topic
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

thedorwaytohell

[GLOBAL: userInfoPane.html]
thedorwaytohell
  • Observer

  • 1 posts
  • Corona SDK

In the example project the code doesnt handle (if not match return to original positions). How would i iplement this?

To be clear i dont really want the direct answer just help finding then right direction so i can figure it out.

My mind tells me:

If player moves the little tile object thingies, check for a match. If match, do what it does. If not match, return them to there original places.

So id need a boolean, isMatch. Id need variables to handle previous position and new position for each tile moved. And hopefully without having to completely rewrite the whole thing or changing its logic too much.

Im new. Obviously :) btw coron sdk is awesome




[topic_controls]
[/topic_controls]