massive problem with platforms, need urgent help thanks! (solved)

CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
edited October 2013 in Working with GS (Mac)
hey everyone if you watch the video below you will notice that its abit strange and i need help fixing it.
when my actor jumps on a platform the platform falls, but i cant uncheck moveable on the platform because it needs to move across the stage, also when i hit the platform from below it fly's up, (this i defiantly don't want)

also as seen in the video at around 16 to 17 seconds my main character will jump and hit the side of the platform and by watching the video you will see what comes next, my main actor slowly drifts off the screen, this i really really don't want.
any help would be great! thanks.

Comments

  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Is this an endless runner with recycling actors?
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @matarua it is an endless runner with spawned actors that are destroyed once they hit the white object on the otherside of the screen as seen in the video.
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Ok since they won't be around for long you can...

    Constrain Attribute self.Position.Y to self.Position.Y

    That will lock them - the X changes.

    Fix that up and then see how you go with the next issue :)

    Cheers, M@
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    ok @matarua i constrained self.position.y to self.position.y in the platform but still the platform falls :/
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Also you could just Constrain Attribute of player to a fixed X point too.
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @matarua my bad the constraining the platform to its y position worked, but the main question is howcome the main actor once hitting the side of the platform still does what it does in the video? but also thank you so much for helping me this far :)
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @matarua as seen in this video below when i stand on the platform now i sink? aswell as my other problem is still occurring with being pushed off screen
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Also you could just Constrain Attribute of player to a fixed X point too.

    Are you using gravity? And have the blocks got density?
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @matarua i have tried enabling density, didnt do good, i am not using gravity, i just have in the main actor the accelerate button
    and what do you mean by the fixed x point?
    i tried constraining the main actor to a y person once it lands on the platform, it does stay on the platform but becomes very glitchy and looks bad :( i really dont understand why this is so hard, many people have made endless runners like this.
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Should be easy really - just one actor collides with another actor. Perhaps look at some templates that may help you understand platform game code? GS Platformer template...

    If you send me your game I can fix it up perhaps. Or you can go to GSHelper or DeepBlueApps for templates. They are a great help :D

    It's hard to give the exact answer giving ideas towards videos. Code is needed.

    Cheers, M@
  • CodeMonsterCodeMonster ACT, AustraliaMember Posts: 1,078
    @matarua ill send you a message of the link for the download of my project, i really hope you will be able to help, and keep in mind you are defiantly going in the credits for programming aswell, cheers.
  • mataruamatarua Auckland, New ZealandMember Posts: 854
    Cool all good :) I will see what I can do for you.
  • issaronissaron Member Posts: 4
    Hi has anyone found a solution to this issue as I'm facing the same right now? thanks!
Sign In or Register to comment.