Let's Make An Expression FAQ?

Discussion and feedback on Construct 2

Post » Mon Jul 29, 2013 10:29 pm

Kyatric has done a good job listing game mechanics in his FAQ.
Would it be a good idea to start an FAQ of common expressions?

EG. A capx could show how to use the Lerp, Clamp & Delta Time expressions to create a Smooth Slideshow Transition

I feel there's a jump from learning basic coding logic to advanced expressions.

Learning how expressions work by playing with a Capx could make it easier, especially if there's a categorised list of examples. Iv learnt the Definitions of Native Expressions but it's hard to visualise how they would work together in a game mechanic.

:DNECROKRIEG2013-07-29 22:31:48
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Tue Jul 30, 2013 5:28 pm

That would be awesome!
B
17
S
4
G
4
Posts: 143
Reputation: 4,004

Post » Tue Jul 30, 2013 6:09 pm

Great!! Iv found a few good posts with examples already, I'll start categorising them
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Thu Aug 01, 2013 3:22 pm

Would you happen to know how to use lerp to move objects according to bezier curves?
B
17
S
4
G
4
Posts: 143
Reputation: 4,004

Post » Thu Aug 01, 2013 4:03 pm

good question! This is something I also want to figure out. I want to make an Angry Bird Trajectory aim



I Found This Formula but I will have to figure how to implement it in C2.

I'm not too savy with computer science but will give it a go at some point.
B
15
S
6
G
3
Posts: 87
Reputation: 4,304

Post » Thu Aug 01, 2013 4:33 pm

Lerp doesn't really work well for paths.
It has an ease in as over demonstrated in this capx.newt2013-08-01 16:35:21
Image ImageImage
B
166
S
49
G
154
Posts: 8,105
Reputation: 100,231

Post » Thu Aug 01, 2013 5:33 pm

The system expressions are listed in a maintained manual article (sometimes with examples). This should be your goto list, not the old unmaintained tutorial that was written when this manual article did not yet existed.

The lerp expression has several topic listed in the how do I FAQ with capx example displaying several examples of use.

For your issue about the trajectory a forum search may have gotten you this link.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
276
S
103
G
84
Posts: 7,289
Reputation: 83,098

Post » Fri Aug 02, 2013 2:31 pm

@Kyatric Hey thanks for the reply. I want to improve on the way beginners like myself learn advance expressions. The System Expressions List supplies definitions but not lessons or examples for the majority.

I really like Yann's Lerp Explanation It helped me for when I was trying to make a Slideshow system. Perhaps Yann's, Newt's & Kyaric's lessons could be linked into the Expression List to make it easier to find the expressions people are looking for so they can understand their various applications.

These lessons / discussions are awesome we should collate all of them and put them in one dedicated section such as the System Expression List. They're are the most valuable thing on the forum so let's make it easy to find them.

:D

Cheers Dudes.
NECROKRIEG2013-08-02 14:45:55
B
15
S
6
G
3
Posts: 87
Reputation: 4,304


Return to Construct 2 General

Who is online

Users browsing this forum: JohannesLudwing and 6 guests