Change gravity with an actor

I want to create an actor that can change the gravity just by clicking it. Is that even possible? If so how would you do it?

Answers

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Sure, instead if using GS gravity setting you want to use an Accelerate behavior on your actor(s), then you can adjust that setting as needed.
  • SocksSocks London, UK.Member Posts: 12,822
    @kingfluffysocks

    I made you a quick demo (attached):
  • kingfluffysockskingfluffysocks Member Posts: 17
    Thanks socks! I also tried creating two game integer attributes and set them as the speed and linear velocity y for the 200 to 50 actor. But when i created another actor that when pressed would set both the speed and linear velocity to 0 for the 200 to 50 actor, it didnt work. Any ideas what happened?
  • SocksSocks London, UK.Member Posts: 12,822
    Thanks socks! I also tried creating two game integer attributes and set them as the speed and linear velocity y for the 200 to 50 actor. But when i created another actor that when pressed would set both the speed and linear velocity to 0 for the 200 to 50 actor, it didnt work. Any ideas what happened?
    No idea !?

    The thing is I'm not telepathic :)) :D so I can't see what rules and behaviours you are using and how you have set them up, if I could see them or if you could upload your GS project then I could take a quick look.


  • kingfluffysockskingfluffysocks Member Posts: 17
    kk whoops :p
  • kingfluffysockskingfluffysocks Member Posts: 17
    wait how do you upload it to the forums?
  • SocksSocks London, UK.Member Posts: 12,822
    @kingfluffysocks

    When you start a new post - there is a link just below the comment box labelled 'attach a file' - click on this link to attach your file. Your file will need to be zipped / compressed.
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I'm pretty sure you need to be a pro member to be able to upload to the forum as well, it's a perk. :)
  • SocksSocks London, UK.Member Posts: 12,822
    I'm pretty sure you need to be a pro member to be able to upload to the forum as well, it's a perk. :)
    Ah! I didn't realise.

    @kingfluffysocks

    1) compress/zip the file.
    2) Upload it to one of the hundreds of file hosting websites.
    3) Once hosted the file hosting website will give you a URL.
    4) Post that URL here.

    http://www.mediafire.com is good.
Sign In or Register to comment.