Drag Problem with Change Attribute ?? (big Issue) Pls Help

VoiceExpressVoiceExpress Member, PRO Posts: 102
edited November -1 in Working with GS (Mac)
Hi guys,

i have a portrait game with is scrollable up and down (640 by 2000) 320 is all you can see, I have a button that when pushed it should send camera to the bottom right 320 where another page is, So it looks like its change scene but has not. it works perfectly without the drag on (scrollable) but as soon as thats on it just flickers to the page.

Any Help.

Also it works with constrain attribute but only works once ???? why is this

Thanks

Comments

  • POMPOM Member Posts: 2,599
    Sounds like you have an actor that control the camera ,
    instead of changing the camera origin to the bottom right , send the camera actor to the bottom right , also once its there , make sure no other rule is making it go back to the long scene !

    About the constrain that works only once , its too general , you need to be more specific , the constrain is in a rule? what rule? who control this rule? what triggers it? etc

    Roy.
  • VoiceExpressVoiceExpress Member, PRO Posts: 102
    @P-O-M

    Sorry about the double posts, I kinda thought i didn't explain the constrain part so did another post.

    i will try and send the camera actor to the bottom right.

    About the constrain .... I have a button that when pressed moves the camera origin to the bottom right (off main page) and one button there which sends it back to the main page, But when back at the main page if i press the same button which should send me back to the bottom right ...Nothing happens. its like the button only works once and thats it.

    Any thoughts
  • POMPOM Member Posts: 2,599
    VoiceExpress said:
    @P-O-M

    Sorry about the double posts, I kinda thought i didn't explain the constrain part so did another post.

    i will try and send the camera actor to the bottom right.

    About the constrain .... I have a button that when pressed moves the camera origin to the bottom right (off main page) and one button there which sends it back to the main page, But when back at the main page if i press the same button which should send me back to the bottom right ...Nothing happens. its like the button only works once and thats it.

    Any thoughts

    To be honest i still did not understood where the constrain comes in? are you constraining the camera X and Y ?

    Also , about the button that sends the camera to bottom right upon release , is it on a scrollable layer ? (it should be)
    is it changes a boolean to trigger the action or directly changes the X and Y values?
    Try using pressed instead of release to see if it fixes the issue .

    Roy.
  • VoiceExpressVoiceExpress Member, PRO Posts: 102
    Hi Roy

    No need to worry about the constrain now as what you said before about sending the camera actor has worked a treat, Thank you very much (been on that for over 5 hours LOL)

    One small error though, Once it moves to bottom right, it still scrolls up and down which i do not need as picture only 320 by 480 with back button on, it just scrolls to black screen ??

    Any ideas
  • VoiceExpressVoiceExpress Member, PRO Posts: 102
    Sorted It Thanks.
This discussion has been closed.