[SOLVED]going through the gravity platform tut

Just started using Construct 2? Post your questions here

Post » Mon Aug 17, 2015 5:10 am

Hey all,

So I'm making my way through the gravity platformer tut but I have an issue when I get to the last line of code here:

Image

It won't allow me to put commas in the parenthesis when I enter the "(0,0,Xvector,Yvector)-90" part. Any idea why that might be?

Image

Thanks for your help!
Last edited by ultrafop on Sat Aug 22, 2015 2:03 am, edited 1 time in total.
B
60
S
36
G
23
Posts: 341
Reputation: 17,157

Post » Mon Aug 17, 2015 9:06 am

seems like you are missing the word angle..

angle(0,0,xvector,yvector)

If I understand what you are trying to do..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Aug 17, 2015 9:39 pm

Thanks @littlestain - I thought that the "angle" part was pre-setup by the input. Now I've got the script ready! I must say that I really appreciate the community here being so helpful. I know I have a lot to learn but you guys have really been making the process fun :).
B
60
S
36
G
23
Posts: 341
Reputation: 17,157

Post » Tue Aug 18, 2015 6:03 pm

I'm sorry to keep doing this but I just don't know why these gravity zones aren't working (My platform just jumps around like normal in non-relative zones, no matter which way the gravzone sprites are pointing). Any thoughts?

Image

In the original tut (in the first post), there is cox(gravzone.a)xvector - but when I type in the ".a" part C2 tells me "a" isn't an expression. I'm thinking that something going on there is holding me back but I can't find ".a" in the manual.

Any help is greatly appreciated!
B
60
S
36
G
23
Posts: 341
Reputation: 17,157

Post » Fri Aug 21, 2015 12:01 am

EDIT: Tinkering in another project and got it working.
B
60
S
36
G
23
Posts: 341
Reputation: 17,157


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests