User Tag List

Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 60

Thread: My 1st Game - Sokoban - Need Help

  1. #1
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    My 1st Game - Sokoban - Need Help

    Okay... now that I bought the standard edition.

    My wife LOVES Sokoban type games. She is disabled and so for my first Game, I want to do something simple for her.... because she likes simple.
    But, I am running into issues... and not knowing the events commands yet... I am just all over the place.

    Here are my issues...

    sokoban01.jpg


    sokoban02.jpg


    1) I can move my player and push blocks around.
    I currently have the player with 8 directional movement set in properties (up, left, top, down)

    But, I want to constrain movement to just the grid (48x48 blocks)
    So, I figured out how to do that, but then I can't move the "pixel cubes" (color blocks)

    2) I also want to constraint the "pixel cubes" to the same 48x48 movement.

    3) Having trouble figuring out how to stop a "pixel cube" when it hits the wall. I don't have stop available for collision

    4) And then I have to try and figure out how to stop my player when I move "pixel cubes" against a wall.

    Any insight would be appreciated.

  2. #2
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    622
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Hey, I've made a hopefully simple example on how to do this: Sokoban-Example.mfa
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  3. #3
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by BartekB View Post
    Hey, I've made a hopefully simple example on how to do this: Sokoban-Example.mfa
    Oh my... that is perfect!!!

    THANK YOU!

  4. #4
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay... I got that working on my game.

    Few things..

    1) I would like the player to move continuously when I hold down an arrow key.
    Right now, it stops until I lift finger of key and re-press

    2) How would I go about figuring out if the player has put all "pixel cubes" on ALL of the "X's" or not.
    Logically, in code I would use an if statement... does F2.5 have that?

    sokoban03.jpg

    3) After testing the level when I am done setting it up, what is the best way to start creating more levels?
    Is their objects I can globally display across all frames?

  5. #5
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by pixelink View Post
    Okay... I got that working on my game.

    Few things..

    1) I would like the player to move continuously when I hold down an arrow key.
    Right now, it stops until I lift finger of key and re-press

    2) How would I go about figuring out if the player has put all "pixel cubes" on ALL of the "X's" or not.
    Logically, in code I would use an if statement... does F2.5 have that?

    sokoban03.jpg

    3) After testing the level when I am done setting it up, what is the best way to start creating more levels?
    Is their objects I can globally display across all frames?
    Okay... I am using the counter to count each "pixel cube" that gets destroyed.
    What events do I use to display a "Level Complete" image after I have determined that the counter is '0'??

  6. #6
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    622
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Technically all of the conditions on the left of the event editor are If statements, except from green ones which are triggered (functions)

    The answer to the third question technically is to make a simple level editor so you load up files to structure a new level (all in the same frame), but it's a bit difficult. I can do an example of that regardless if you want to.
    Sokoban-Example.mfa
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  7. #7
    Clickteam Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    BartekB's Avatar
    Join Date
    Aug 2013
    Posts
    622
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    For the Level complete image, you can untick "Create at start" on the active object that has the image in its properties:

    Then with the create object action create the object when condition is met:
    - BartekB, a.k.a Uppernate
    Join the Click Converse Discord! - https://discord.gg/7RNXFrC
    Dungeon Raiders! - Link soon™

  8. #8
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay.... I did change my mind.

    I am using a counter.
    Each time a "pixel cube" goes over an "X" it destroys the cube and "x"
    Then I deduct from counter

    I then evaluate the counter is "0" then display this screen.

    User clicks screen to go to next level.

    sokoban04.jpg

    Now the only thing I need to solve is I like it when the user clicks the key and on moves 1 once.
    But, I also want to be able to go faster if they hold down longer on the arrow keys.

  9. #9
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by BartekB View Post
    For the Level complete image, you can untick "Create at start" on the active object that has the image in its properties:

    Then with the create object action create the object when condition is met:
    Hmmm... that seems much easier.
    Thanks

  10. #10
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    May 2017
    Location
    Sabattus, ME
    Posts
    91
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So far everything is working great...

    I only have two things to complete...

    1) How to make the player mover faster when I press and hold down on arrow keys.
    I am playing with the "Repeat when key 'LEFT ARROW"".... but I can't get it to work yet.

    2) I need to implement and undo of about five moves.



Page 1 of 6 1 2 3 ... LastLast

Similar Threads

  1. Creating an Undo Command for Sokoban
    By Simflare in forum Fusion 2.5
    Replies: 29
    Last Post: 1st June 2017, 12:50 AM
  2. Claustophobia (HTML5 free game made for internal game jam event)
    By SiXX in forum WIP & Released Games & Apps
    Replies: 5
    Last Post: 12th March 2016, 03:26 PM
  3. Sokoban (Flash Game)
    By warlords in forum Released Games & Apps in Flash
    Replies: 0
    Last Post: 14th January 2014, 09:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •