Incrementing

New releases and general discussions.

Post » Tue Jul 21, 2009 6:07 pm

I've noticed I can't use ++1 to increment things in Construct. How would I go about doing this? What I want is for the animation to be speeded up the faster my sprite moves for a sense of realism. Any help is appreciated.
B
1
G
3
Posts: 6
Reputation: 837

Post » Tue Jul 21, 2009 7:45 pm

Construct isn't C ;) You can use a 'set to <value + 1>' type action, or just use the 'add' action for private/global variables.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Wed Jul 22, 2009 1:42 am

Try the Tutorial for basic event knowledge.
B
25
S
3
G
6
Posts: 1,197
Reputation: 5,620

Post » Thu Jul 23, 2009 6:20 pm

I'm messing around with a private variable now. What do you mean by the add action? Sounds promising xD
B
1
G
3
Posts: 6
Reputation: 837

Post » Thu Jul 23, 2009 6:32 pm

The 'Add to value' action for Private Variables
B
2
G
3
Posts: 27
Reputation: 904

Post » Wed Jul 29, 2009 6:12 am

Python doesn't have ++ for some reason, you have to use += 1
B
4
S
2
G
5
Posts: 641
Reputation: 3,011


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests