Tshirtbooth's Grid based template

game ongame on Sun Valley, California Member, PRO Posts: 79

Hi All,

Dose anyone know how to add touch controls to Tshirtbooth's Grid based template? I have standard Up, Down, Left & Right arrow Actors. I'd like to move the main actor using those arrows buttons when touched, on his grid.

Thanks, David

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    I'm not familiar with the template you mention but I have a tutorial linked below about adding 'arrow' touch controls to your game. Maybe you could adapt it to your needs.

    http://www.jamie-cross.net/?portfolio=gamesalad-simple-touch-controls

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Thanks Jamie C. That's a great video. I've watched and used it several times. Unfortunately it doesn't work with his Grid Template.

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Also, his grid is changing the size and starting position of my actor. No matter what I do, when I click preview, my actor gets smaller and is repositioned at the bottom left corner. I did notice, if I make the number in attributes bigger (20,40,64 & so on) the actor gets bigger. I want it at 64, so I have five rows.

    Is there anyway to make my actor stay the correct size and start in the position I need with his grid template?

    Thanks again, David

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Can you post a link to his template or the discussion where you found it? It's hard to help you without knowing what you're referencing.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • game ongame on Sun Valley, California Member, PRO Posts: 79

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Well that's a video of the template in action but since it doesn't show any rules, it's not helpful in terms of assisting you with this problem. It appears from the video that the movement is arrow key based (but I could be wrong). If so, you just need to transfer the rule for each movement from the ball actor to an arrow actor. For example, if it says When key right is down, change attribute self.position.X to self.position.X+40, you would instead have a rule that says When touch is pressed, change attribute self.position.X to self.position.X+40 in the right arrow actor.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Thanks, I got my first question solved.

    Now I just need to figure out if there is anyway to make my actor stay the correct size and start in the position I need with his grid template?

  • game ongame on Sun Valley, California Member, PRO Posts: 79

    Jamie C,

    I was able to incorporate your instruction into the Grid Template with just minor changes. Thank you so much.

    Now if I could just figure out why his Template changes the size of my actor and positions it near the bottom left corner, I'll be Gold.

    David

    @jamie_c said:
    I'm not familiar with the template you mention but I have a tutorial linked below about adding 'arrow' touch controls to your game. Maybe you could adapt it to your needs.

    http://www.jamie-cross.net/?portfolio=gamesalad-simple-touch-controls

Sign In or Register to comment.