how do i get the camera to follow a dragable image?

johnydeejohnydee Member, PRO Posts: 196
edited November -1 in Working with GS (Mac)
So i followed t shirt booths tutorial on how to get the camera to go farther than the 480x320 screen and have the camera follow the character off screen but it dosent help me on my dragable image.How do i get the camera to follow my sprite?

Comments

  • mlaftamlafta Member Posts: 147
    Did you add the camera behavior on the image actor?

    ML

    http://itunes.apple.com/ca/app/basketball-starz/id454675752?mt=8
  • johnydeejohnydee Member, PRO Posts: 196
    Yes i did but in t shirt booths video in the movable character he adds a +camx to the constrain attribrute.But it doesent work on my drageable image. and is that your game? it looks pretty good iam gonna get it once i get my itunes card lol..
  • mlaftamlafta Member Posts: 147
    Yes this is my first game I am glad you like it :)

    About your question. The basic thing here is when an actor have a camera control then the camera will follow it. You can not have more than one camera control in the game. So I am assuming you want to drag an image and wishes that the camera would follow, right?

    Try to do it from scratch on a test game until you figure out what is wrong.

    ML

    http://itunes.apple.com/ca/app/basketball-starz/id454675752?mt=8
  • johnydeejohnydee Member, PRO Posts: 196
    ok yeah ill try it again. And i bought your game and just left a review...when the ball hits the walls and makes that sound it reminds me of sonic 2 in the casino level lol..and how do i do the level unlock system? i dont think iam doing it right.How do i get the locked images to change to unlocked ones?
  • mlaftamlafta Member Posts: 147
    Thanks man :)

    To change the image of any actor you need to set a rule and put in it "change image" behavior. If you have a problem with that let me know. I will help you with.

    So for my game I created an integer attributes and set it to one. and everytime a level is completed the attribute increase by 1. in the level actor I created rule for each level, for example for level 2 actor, if the attribute is 2 then change image and so on.

    ML
Sign In or Register to comment.