Need help on new game idea

Get help using Construct 2

Post » Wed Jan 18, 2012 1:23 pm

hi everyone, im new to construct but have a bit of experience in game design. Id love to use this engine but not sure how to get the results i need.
I wish to make an event that allows me to drag out a conveyor belt using the left button on the mouse, so i want to drag out lines from the point i hold down the mouse, and stop when i let go. as i said im, new to this, i just need a bit of advaice on how to achieve this.
many thanks
B
10
S
1
Posts: 39
Reputation: 1,053

Post » Wed Jan 18, 2012 1:44 pm

ok got the conveyor belt working now, just need a way to be able to drag out copies of it
B
10
S
1
Posts: 39
Reputation: 1,053

Post » Wed Jan 18, 2012 2:01 pm

Add a event like this:

Mouse.IsDown
Mouse.IsOverObject[BeltThing]
     ->System.createObject[BeltThing(Mouse.X, Mouse.Y)]

should do the trick
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Wed Jan 18, 2012 2:27 pm

hey thanks
that kind of works, however5 the belt object comes out as a whole using the click position as a centre point. I want it to drag out the object so as soon as i click, the left side of the belt will show, and stretch out following the mouse cursor.
hope this makes sense
B
10
S
1
Posts: 39
Reputation: 1,053

Post » Wed Jan 18, 2012 2:37 pm

I think i need to see a capx. Im not sure I get what your asking for?

you want to dynamically edit properties of the belt at runtime?
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Wed Jan 18, 2012 3:04 pm

yes, to put it simply i want to dynamicly change the scale of the belt at runtime
much like the image below
image here


i want to be able to draw out the lines like so, but the lines then act as conveyor belts when drawn.
B
10
S
1
Posts: 39
Reputation: 1,053

Post » Wed Jan 18, 2012 3:31 pm

Oooooh I see. I'm not on a computer right now but I'll write a tutorial on this as soon as possible
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Post » Wed Jan 18, 2012 3:51 pm

that would be fantastic if you could.
B
10
S
1
Posts: 39
Reputation: 1,053

Post » Wed Jan 18, 2012 11:19 pm

if you could let me know when and where to find this tutorila, that would be great. thanks again
B
10
S
1
Posts: 39
Reputation: 1,053

Post » Wed Jan 18, 2012 11:43 pm

Yes will do. I'll try make a start on it tomorrow. It might help if you private message me your capx, or a basic version to help you even more.
B
29
S
12
G
7
Posts: 740
Reputation: 7,839

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 16 guests