Sprite pushing another sprite

Get help using Construct 2

Post » Thu Dec 01, 2011 1:21 pm

Hi,

I want to create a player who is able to push a ball from one direction and can not push it from the other direction, How can i do it?

And how can i change the animation of the player during collision to be "Pushing animation" instead of "Running"?

Thanks in advance.
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Thu Dec 01, 2011 9:03 pm

No one can help?
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Thu Dec 01, 2011 9:07 pm

use physics and add from one side a invisible wall hmmmm

a little hard
post capx and ill help ya
B
35
S
16
G
16
Posts: 2,222
Reputation: 16,589

Post » Fri Dec 02, 2011 4:17 pm

@ kbdmaster

Here is the capx file.

.capx file

I want the player to push a ball from one direction only and while he is pushing the ball its animation will changing from "running" to "pushing".

Can u help me with that?

Thanks in advance.mina2011-12-02 18:19:52
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Dec 03, 2011 6:29 am

ANY IDEA?
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Dec 03, 2011 1:01 pm

Please help me, I tried applying physics to a solid object and set impulse to it while it's on collision with the player, but still it doesn't work perfectly.

I also set animation to pushing during that collision but it doesn't work :(
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Dec 03, 2011 1:08 pm

I registered on forum just to give you the answer, and I WILL :) I think i know how it SHOULD be done, but:
1) Its just my first few hours with construct so me naAb :P
2) Please if you post your 'anything' on public and ask for help, be so kind and rename some objects (to 'player', 'ball' etc) and maybe add some comments on events sheet, where exactly you need help. (I know, i know, the ball, pushing, running and so on... :P)

ps. Sorry on my whining in first post, will try to post answer asap when im done (if anything comes out)
B
1
G
1
Posts: 5
Reputation: 435

Post » Sat Dec 03, 2011 1:22 pm

Thanks vjadro :) and u r right about the comments and renaming objects, I will rename and add comments on my future posts.
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Post » Sat Dec 03, 2011 2:45 pm

Check this http://dl.dropbox.com/u/51959257/pinky_ball.capx

facing=0 (player facing there ->)
facing=1 (player facing there <-)

Hittin ball from left to right will push it, from right to left not.

ps. If thats not what ur askin for, feel free to ask little more precise :P
B
1
G
1
Posts: 5
Reputation: 435

Post » Sat Dec 03, 2011 6:57 pm

Thanks vjadro 4 ur help, but what i want exactly is:
1. the player should be able to push the ball(Rock) from left to right slowly
2. the player's animation should be changed from running to pushing during the pushing of the pall
3. the player should not be able to push the ball from right to left or from the top.

I tried to do some steps on this capx file, but the player's animation didn't change from running to pushing, don't know why! .

So can u help me with that.

Thanks again.
B
303
S
6
G
5
Posts: 163
Reputation: 12,152

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests