anti-gravity and add specific time for an object ?

Get help using Construct 2

Post » Mon Oct 06, 2014 1:26 am

Hi

these two things make my day is bad and wasted my time for nothing :evil:

I have a an object go up-down speed:200 so what i want to do is if the ball in my game touch one box the speed rise for 3 second and then back again normally ? (( like power-up ))

the other thing is the gravity. i have a ball in my game with zero gravity what i want to do is that when this ball touch the box change her destination (( if it was going to the right change to the left)) for 3 second

I hope some one will help me with this :geek:
B
4
S
1
Posts: 18
Reputation: 395

Post » Mon Oct 06, 2014 9:47 am

give the object timer behaviour

ball on collision with box
- object set speed to 300
- object start timer tag: morespeed

object on timer : morespeed
- object set speed to 200

I don't understand the gravity question, sorry..
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 Oct 06, 2014 9:56 am

you mean something like this
You do not have the required permissions to view the files attached to this post.
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Sun Oct 12, 2014 3:37 am

LittleStain wrote:give the object timer behaviour

ball on collision with box
- object set speed to 300
- object start timer tag: morespeed

object on timer : morespeed
- object set speed to 200

I don't understand the gravity question, sorry..

Help me man. i really don't know where is the mistake
every thing work fine but the problem is with the speed. it doesn't go back to the normal speed :x
can you please do it and show me the event sheet please ?

you mean something like this

I have old version of C2 and i don't know how to update it :(
B
4
S
1
Posts: 18
Reputation: 395

Post » Sun Oct 12, 2014 7:14 am

will this help you understand
You do not have the required permissions to view the files attached to this post.
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Mon Oct 13, 2014 11:23 pm

Lordshiva1948 wrote:will this help you understand

it won't open with me. because i use old version of C2 1.72

Just if some one could show me a tutorial or video or even a picture of sheet for a time for an object will be great. there is no tutorial for this thing !!! i search and i couldn't find one talk about it !!!! :|
B
4
S
1
Posts: 18
Reputation: 395

Post » Tue Oct 14, 2014 6:03 am

AeleaS why don't you download free new version from scirra
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Wed Oct 15, 2014 1:15 am

Lordshiva1948 wrote:AeleaS why don't you download free new version from scirra

Because I'm working in my game and i don't want anything missing from it if i uninstall C2.

My problem is with the timer. if some one can show me how to make a special time for an object i really will appreciation it.
B
4
S
1
Posts: 18
Reputation: 395

Post » Wed Oct 15, 2014 5:12 am

you could do it like this Timer Let's say you want to spawn enemy every 5 seconds or do something else

Global variable Timer=0
System every tick System add dt to timer
System Timer > or Equal 5 then set timer = 0
spawn enemy
B
252
S
39
G
15
Posts: 1,964
Reputation: 40,753

Post » Wed Oct 15, 2014 7:00 am

AeleaS wrote:Because I'm working in my game and i don't want anything missing from it if i uninstall C2.

That is very unlikely to happen. Even if you installed 3rd party plugin it will still be there once you install the new release.
B
28
S
8
G
4
Posts: 553
Reputation: 4,924

Next

Return to How do I....?

Who is online

Users browsing this forum: Yahoo [Bot] and 37 guests