Setting angle of spawned object

New releases and general discussions.

Post » Fri Apr 03, 2009 3:34 pm

Hi!
I think it would be great if we could set angle of spawned object. Same goes for "Create object..." actions. Maybe I'm dumb, but I tried many ways and I still can't make an event which would provide me with 5 same objects, every shot in a different angle, all of them in same time.

Sory for my English, and thanks for reading ;) I'm waiting for comments.
B
7
G
4
Posts: 6
Reputation: 1,106

Post » Fri Apr 03, 2009 3:37 pm

If you use the 'set angle' action after spawning/creating that'll set it.
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Apr 04, 2009 12:32 am

This thread title made me think of something:
Will we ever be able to change the angle of a Bullet-behaviour object other than the actual angle of the object it spawns from? I'm fooling around with the behaviour in non-bullet ways and it would help. :)
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Sat Apr 04, 2009 12:49 am

Here is the latest version of my advanced object creator its pretty much the same as the Create Object by name but it has the option to set the angle right in the paramaters. I cleaned it up recently so some of the params may be funky if thats the case please post in my thread on the plugin forum.

[url=https://dl.getdropbox.com/u/646697/ObjectCreator.zip:35upau4x]Advanced Object Creator[/url:35upau4x]

You go to program files>Scirra>Construct>Plugins
Put the first .csx in that folder then open the runtime folder and put the .csx in the runtime folder in there.
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Sat Apr 04, 2009 1:09 am

[quote="konjak":1kxnbefm]Will we ever be able to change the angle of a Bullet-behaviour object other than the actual angle of the object it spawns from?[/quote:1kxnbefm]
The ordinary Sprite 'set angle' action should also change the angle of the bullet... the Ghost Shooter tutorial uses this.
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Sat Apr 04, 2009 9:43 am

I could swear I tried that, but evidently not.
B
5
S
2
G
3
Posts: 234
Reputation: 1,818

Post » Sat Apr 04, 2009 12:42 pm

@Rich: I know, but I it works only when one object is spawned.

Here's what I've got:
http://www.speedyshare.com/205620160.html
And here's what I want to get:


That's why I think we need an option to set angle of created object, or maybe just new action "Shoot object in direction".
B
7
G
4
Posts: 6
Reputation: 1,106

Post » Sat Apr 04, 2009 12:47 pm

Here's how to properly achieve that :).

B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Apr 04, 2009 1:05 pm

I thought about loop, but had no idea how to get it to work :D Thanks a lot!
B
7
G
4
Posts: 6
Reputation: 1,106


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests