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
395
S
232
G
88
Posts: 24,368
Reputation: 193,746

Post » Wed Jul 22, 2009 1:42 am

Try the Tutorial for basic event knowledge.
B
47
S
10
G
9
Posts: 1,224
Reputation: 8,424

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
S
1
G
3
Posts: 27
Reputation: 1,054

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 0 guests