Private Variable assign

This forum is currently in read-only mode.
From the Asset Store
Easily store, modify, read and manipulate colors with Color Variables!
  • Hello everyone.

    Ive got one simple question . How to assign private variable in CC ?

    For example ive got variable "xx" and i need to assign it as an angle for sprite 2.

    In cc2 in events menu i just set angle to sprite 2.xx , but how to do it in classic?

    Sorry for my awful english.

    Best regards,

    Erik

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • + some condition

    -> Sprite: Set angle to Sprite.Value('xx')

    if you want to set a private variable you can do it like this:

    + some condition

    -> Sprite: Set 'xx' to Sprite.Angle

    Or you can do the same in python

    Sprite.SetValue('xx', Sprite.Angle)

    and

    Sprite.SetAngle(Sprite.Value('xx'))

  • + some condition

    -> Sprite: Set angle to Sprite.Value('xx')

    if you want to set a private variable you can do it like this:

    + some condition

    -> Sprite: Set 'xx' to Sprite.Angle

    Or you can do the same in python

    Sprite.SetValue('xx', Sprite.Angle)

    and

    Sprite.SetAngle(Sprite.Value('xx'))

    Thanks alot ! <img src="smileys/smiley1.gif" border="0" align="middle" />

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)