Rotation point

Get help using Construct 2

Post » Fri Sep 23, 2011 11:01 pm

How am i supposed to use the Set angle toward a point action if the rotation point is not well centered in my object? Or am I configuring it wrong? Any way to modify the rotation point?

Thank you very much!
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Post » Fri Sep 23, 2011 11:21 pm

I'm not sure what you mean - have you tried changing the origin of a sprite by double-clicking it and using the 'image points' tool in the image editor?
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Sep 23, 2011 11:29 pm

Tried it and my spaceship keeps pointing at nowhere but moving on the right direction:



Any ideas?
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Post » Fri Sep 23, 2011 11:35 pm

Posting your .capx file is always a good move so we can see what you've done.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Sep 23, 2011 11:41 pm

Here you have

http://dl.dropbox.com/u/28504422/gaia.capx
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Post » Fri Sep 23, 2011 11:45 pm

In Construct 2 0 degrees is facing right.

So open the image, hit rotate clockwise, and it works.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,600

Post » Fri Sep 23, 2011 11:54 pm

You are a genious, thank you ;)
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Post » Sat Sep 24, 2011 12:15 am

You are a genious, thank you ;)

Now I'd need to stop it, how could this be done?
I tried adding an Event that if the ship overlaps the cursor object, then set the speed to 0, but it does not work neither.
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Post » Sat Sep 24, 2011 12:31 am

It should work.

In your event sheet you have currently an event "on left button clicked".

Create another event (right click in the event sheet, not on the current existing event, add event)
+ nave is overlapping cursor
=> Set nave.bullet speed to 0

This condition should be on the same level as "on left button clicked".
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Sep 24, 2011 12:37 am

Mmm that was the problem, i had to create it outside the other event...
So, is there some kind of "else" so i can check whether the cursor is gone (while you answered i changed the actions so after 1 second the cursor would get out of the window view)
The idea is to check if it continues on collision so it recovers it's speed value.

(Download again Gaia.capx, I've updated it)
B
7
S
1
G
1
Posts: 37
Reputation: 1,159

Next

Return to How do I....?

Who is online

Users browsing this forum: claurent9, imothep85 and 29 guests