How do I move ovehead object to other position?

Get help using Construct 2

Post » Mon Sep 21, 2015 3:39 am

Hi!
How can to move a object position if this object is near of other object?

Example, if a floating coin (like mario), is near from a box (overhead), move the coin in x or y position to leave to overhead.

And other question.
If i have a score, how can to save this score for a specific player and to make a ranking?

Thanks!
B
4
Posts: 50
Reputation: 290

Post » Mon Sep 21, 2015 11:23 am

Do you mean something like:

coin is overlapping
or
coin is overlapping at offset - coin set x = self.x + 5
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 » Tue Sep 22, 2015 12:51 am

How to do that?, i have a random generator of boxes, this boxes are generated in random x y positions, also i have obstacles in specific positions, but the boxes when are generated, overlapping the obstacles:

Image
The idea is to move the box generation some pixels far of obstacle, depending of your position.



*******EDIT*****

I found the option, in the object functions appears is overlapping to object. If i click this option and after set the new positions the problem is solved.
B
4
Posts: 50
Reputation: 290

Post » Tue Sep 22, 2015 1:29 am

the boxes have the same parameters ? do a need to create a new box?
B
4
Posts: 3
Reputation: 184

Post » Tue Sep 22, 2015 4:00 am

Yes, the same parameters, u put a box, and then copy and copy ...
B
4
Posts: 50
Reputation: 290


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 26 guests