playMaker

Author Topic: tweening & gravity  (Read 1577 times)

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
tweening & gravity
« on: January 08, 2015, 08:59:51 AM »
Hi, i have two questions

Q1: I used "itween Move By" to move my character when i pressed a certain key but the itween causes my character to move through or into the wall. Is there a way to solve that?

Q2: My character has a character controller component. When he falls, it is slow. How do i edit the gravity to make the fall faster?

thanks
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio

Lane

  • Administrator
  • Hero Member
  • *****
  • Posts: 2511
  • Mender of the past
    • Cleverous
Re: tweening & gravity
« Reply #1 on: January 08, 2015, 10:57:32 AM »
Q1: Tweens are direct changes to the transform position of the GameObject, so it's going to go straight through other objects. You should use a different method of moving objects (like physics) if you want collisions.

Q2: Edit > Project Settings > Physics ... Gravity is a force in a direction, so just change the number to suit your needs.
Products by Cleverous
|| Vault Core : Database
|| Vault Inventory : Multiplayer Inventory
|| Vault Attributes : Character Stats
|| That Hurt! : Dmg Floaties
|| Quinn : 3D

IIKII

  • Full Member
  • ***
  • Posts: 137
  • Lonely developer
    • Patreon
Re: tweening & gravity
« Reply #2 on: January 08, 2015, 09:59:39 PM »
Oh i see, thanks for the answers
Support me on Patreon for free adventure games and development insights - https://www.patreon.com/koexstudio