Get help using Construct 2

### » Wed Dec 03, 2014 8:54 pm

http://c2rexplugins.weebly.com/rex_moveto.html

Girl it's okay.. not to worry ..This is just an example...

You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104

### » Thu Dec 04, 2014 7:36 am

Work out the current x and y that is moving to. Do some math.
to get the angle then set it? Theres No CAPX
B
10
S
1
G
1
Posts: 63
Reputation: 840

### » Thu Dec 04, 2014 11:23 am

Paperbeemo wrote: Do some math.

Paperbeemo wrote: Theres No CAPX

Yes, there is..above picture...Help.capx

basic, this is a problem..I can set angle of motion for Player...but I can not get the exact distance...
You do not have the required permissions to view the files attached to this post.
Last edited by korbaach on Thu Dec 04, 2014 1:48 pm, edited 1 time in total.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104

### » Thu Dec 04, 2014 5:51 pm

I'm sorry to bother you......
but here's what I've done so far...

...is there a better way to accomplish "board behavior" ?
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104

### » Thu Dec 04, 2014 11:40 pm

i can't believe that you are unable to solve this, YOU?? The master of all. hihih
B
15
S
4
G
1
Posts: 439
Reputation: 2,024

### » Fri Dec 05, 2014 7:20 am

Okay I'm at school. Im opening the capx to see what I can do.
B
10
S
1
G
1
Posts: 63
Reputation: 840

### » Fri Dec 05, 2014 7:24 am

Distance would be blocks on x + blocks on y traveling to
B
10
S
1
G
1
Posts: 63
Reputation: 840

### » Fri Dec 05, 2014 7:28 am

if distance == right/up/down/left
Action to do here releating to right or up or down or left

keep repeating this.
B
10
S
1
G
1
Posts: 63
Reputation: 840

### » Fri Dec 05, 2014 1:05 pm

Paperbeemo wrote:Distance would be blocks on x + blocks on y traveling to

Paperbeemo wrote:if distance == right/up/down/left
Action to do here releating to right or up or down or left
keep repeating this.

I'm sorry man, I don't follow you..or maybe you do not follow me
.........I will try to better explain.... (check .. Board_Game.capx )

korbaach wrote:...is there a better way to accomplish "board behavior" ?

.....track length is unknown variable.......the player must be able to move in loops or or can build shortcuts...

.....distance to go in every move is variable...(1x32,2x32.........6x32)

.....the direction in which the player moves is unknown variable....

(let's say that a player has won 6 ..his direction on move start is to the "right"..after two blocks,hi comes on crossroads..there is animation with a sign "Up" &"Down..If at this moment playing animation "Up" player automatically turn up.. if is "Down"...tun down..Ok .let's say... player stopped at the exact distance,6 blocks from start.. but stopped on the block that brings penalty..his penalty is ls. 5...now player must automatically return 5x32... etc..)
This simple capx is just example..the player has to move on every track with this "simple" code ..

I hope that I am now better explain the problem
You do not have the required permissions to view the files attached to this post.
B
67
S
24
G
7
Posts: 1,519
Reputation: 11,104

### » Fri Dec 05, 2014 5:53 pm

Pythagorean theorem anyone? a^2 + b^2 = c^2
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,867

Next