Else if or? and spawning certain object in family?

Just started using Construct 2? Post your questions here

Post » Fri Aug 21, 2015 12:16 am

Edited:
to make this more pleasing I've combined two of my questions in one topic

EditedAgain:
to change number 2 question

EditedAGAIN2:
to change number 2 question

1.
is it possible to do a else if or if inside one block?
I tried to do it and it toggles a or between the else if
making it not work

2.
is it possible to spawn a certain object in a family by either a objectID or a custom family var?
B
13
S
6
G
1
Posts: 150
Reputation: 1,962

Post » Sat Aug 22, 2015 4:09 am

can someone reply to this by tomorrow as I need at least question 2 to be answered to continue my game
B
13
S
6
G
1
Posts: 150
Reputation: 1,962

Post » Sat Aug 22, 2015 11:05 am

For the second question, as far as I know there are no ways to do it as simply as that unless you use the nickname plugin (I think it let's you spawn objects with a string rather than needing to select it, this string could be a variable to change the object actually spawned), I never used it personally.

plugin-nickname-behavior-nickname_t74522
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Sat Aug 22, 2015 6:56 pm

where do I download it?
on his site there is only links to capx files

Edit: wait I need to have in based on a number variable so I can increment it by 1 depending on the asteroid type

@Ashley is this even possible to maybe implement or do I have to just use a ton of code for each asteroid?
B
13
S
6
G
1
Posts: 150
Reputation: 1,962


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 5 guests