Stuck with my penalty game-Please help

Get help using Construct 2

Post » Sun May 26, 2013 5:04 am

Hi guys ,

Hope you are doing great, with a lot of work and help I have managed to advance my penalty shootout game but now Im really stuck, I will really appreciate if you guys enlighten me a little bit with the following missing stuff:

1-     I need the ball to get smaller as it gets closer to the goal area (really dont know how to do that)
2-     I need to change dynamically my mouse events to touch events in case somebody wants to play from a mobile device, I tried duplicating the events (mouse and touch) but I removed that since the events were doing everything twice
3-     The physics stuff sometimes act weird, probably I should add something to the physics behavior.
4-     If you check there is an object call malla (it means net), I need the score to increase by one when the ball collides with it, tried but without success.
5-     
Here is my capxs and Ill really appreciate your help, Im still a newbie so I will be more than grateful if you give me some directions


capx
B
5
Posts: 23
Reputation: 821

Post » Sun May 26, 2013 10:46 am

For the distance-scale here's an example

example

and the capx
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sun May 26, 2013 10:50 am

Instead of mouse-input just use touch (you can set it to use mouse input)
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sun May 26, 2013 11:33 am

I've changed some things in your capx, it's not perfect yet, but I hope you understand the changes. It can be done in a much better looking way, but hey, it works.

penalty-improved
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sun May 26, 2013 5:50 pm

Hey LittleStain, thank you very much!!! of course it works you are great!!! and now I have a second starting point cause now I know how to do things in the future. I really really appreciate it my friend! frankencost2013-05-26 17:50:56
B
5
Posts: 23
Reputation: 821

Post » Sun May 26, 2013 6:00 pm

No problem, glad I could help!
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
53
S
16
G
8
Posts: 6,157
Reputation: 19,744

Post » Sun May 26, 2013 11:03 pm

Hi again LittleStain, sorry for bothering again... one last question, if you check everytime the ball collides with the object net (malla)the scores increases by 1, what about if they do not collide? well... I need to increase the variable misses by 1. I tried all ways posible to set an else statement but without success, could you please explain me a little bit how to do that? I tried to crate further variables as if kicked=1 and collided=0 increase the misses value +1 but it starts growing right after the layout starts, could you please help me using the same capx we shared before. Once again thanks for your patience man.
B
5
Posts: 23
Reputation: 821


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests