andreyin's Recent Forum Activity

  • I've released a demo, links on the first post.

    Thanks for the support everyone!

  • I like to use the IID instead of the UID, because it's fixed.

    If you hardcode using the UID, you could accidentally change all the UIDs in your game and you'd have to change each line of code manually (at least that happened with C2 a while ago, not sure if this still happens).

    Let's say you have 3 doors in a layout; if you pick them by IID, their respective numbers will be 0, 1 and 2, in the order they were created.

    IF player entered door

    AND door.IID = 0

    -> Go to layout

  • Click the Gamepad Object on the object list, and on the properties window there's an option for setting the deadzone! IIRC the default is 30.

  • Happy birthday!!

  • NotionGames

    I tried to avoid using it in my game too, but the effects make everything look so good I couldn't resist hahaha!

  • Nijek

    construct.net/en

    Guess the Wii U can't handle it then. Hope they support it on the PS4, hence why I was asking.

  • Nijek

    Sorry, what? I ask because the Wii U supports HTML5, but it doesn't support WebGL.

  • I made an example showing how to use the same programming for more than one controller

    construct.net/en

    It's basically a "For" from 0 to gamepad.count so it should work for any joystick that's connected.

    Then you can use "loopindex" to pick which instance you want.

  • That's amazing! Congratulations!

    Btw if the PS4 does support HTML5, any idea if it supports WebGL?

  • Nevermind, I was supposed to use anglelerp, not lerp. It works now!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi,

    I'm trying to make a layer rotate in my game depending on how far the player is from the center of the layout.

    So I've got this code:

    <img src="http://i.imgur.com/B9Zg8q7.png" border="0" />

    And it works just fine, but I'm having trouble doing the same thing inverted if the player X position is on the left side of the layout.

    The problem is that since the default layout angle is 0 (pointing right), if I need it to go negative it goes crazy and everything starts spinning.

    Is there anything I can do?

    Thanks!

  • Unfortunately if you did it that way you'd have to manually set

    If var = 1

    Create object 1

    If var = 2

    Create object 2

    etc.

    The best way to do it is having the same object with different animations and set the animation speed to 0 (for instace one for health, one for mana, etc).

andreyin's avatar

andreyin

Member since 11 Jan, 2010

Twitter
andreyin has 1 followers

Connect with andreyin

Trophy Case

  • 14-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Forum Patron Made 500 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • x3
    Great Comment One of your comments gets 3 upvotes
  • x2
    Delicious Comment One of your comments gets 10 upvotes
  • Email Verified

Progress

21/44
How to earn trophies