Object.Movement.Speed

Discussion and feedback on Construct 2

Post » Thu Dec 20, 2012 11:53 pm

Hello All! I am working through the Ghost Shooter and have finished the tutorial but am looking to add more functionality. I downloaded the completed version that is linked at the end of the tutorial and am having an issue, there is a behavior on the Monster object when it's health is equal or below zero. A system action that adds Monster.Movement.Speed to Score. The event sheet on my own project will not recognize the Movement piece. I can type Monster. and get a list of available behaviors but Movement is not one of them. I get Angle and a bunch of others. But not movement. So I cannot get the value of Monster.Movement.Speed even though I can see in the properties pain that there is under Behaviors section an property for Speed.... what am I missing. Even if I try to copy the action from the finished sample, I cannot paste it into mine as it still says it is not a recognized behavior.

Any thoughts?
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Fri Dec 21, 2012 12:17 am

Ok, I think I have it, the tutorial has you assign the bullet movement behavior to the monster. I believe in the final solution they did things differently and did not assign this behavior. In mine I need to access it via monster.bullet.speed instead of monster.movement.speed

Any feedback on which one is the preferred method? How would I get it to utilize movement instead of bullet?

Thanks,

James
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Fri Dec 21, 2012 12:42 am

In the capx you downloaded, the "Movement" behavior is a Bullet behavior renamed to "Movement".
(You can see it in the object's behavior dialog, it has the same icon as the Bullet one)

I'd prefer "Bullet" as it's smaller so it's less characters to write when coding actions
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: 6,998
Reputation: 57,791

Post » Tue Jan 08, 2013 5:52 am

Thanks Kyatric, that makes sense now.
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418


Return to Construct 2 General

Who is online

Users browsing this forum: NetOne, saiyadjin and 2 guests