How do I Make Infinite Moving Lines

Get help using Construct 2

Post » Fri Dec 05, 2014 6:56 pm

Hi Guys,
I really in very URGENT need for your HELP!!! I'm making a new game with my teammate and I have to make this game for him! We are making a game inspired by KetchApp Circle app, if you know it that would be very helpful since I want you to know the mechanics.
Image
I want the circle go through the lines that are moving, it needs to spawn from its edge a new line that can be either staright, up, or down. I want the last line leaving to be destroyed and when that is destroyed the line at the right of the layout spawn a new line, this line can vary in animation as I mentioned(up,down,straight). How do I pick the last Instance of line and set its animation based on it's direction global variable. Note it must be infinite!
I used a bullet behavior and reversed its angle so it can move to the left instead of right so be careful about the image point where I should put them please.
Here are some codes and screenshot for demonstration :
Image
Image
Thanks all for help in advance!
ImageImageImageImageImage
B
54
S
15
G
5
Posts: 852
Reputation: 11,346

Post » Fri Dec 05, 2014 7:38 pm

line x<220
--- destroy line

every 3 seconds
pick topmost line
--- create line at """end of line"""
--- line set angle to choose(-90,0,90)

Where the origin of the line is the left-center and """end of line""" is an image point at right center.
B
91
S
31
G
103
Posts: 5,238
Reputation: 67,762

Post » Sat Dec 06, 2014 12:28 pm

R0J0hound wrote:line x<220
--- destroy line

every 3 seconds
pick topmost line
--- create line at """end of line"""
--- line set angle to choose(-90,0,90)

Where the origin of the line is the left-center and """end of line""" is an image point at right center.

Thanks buddy, with little help of your reply I managed to fix it! :D
ImageImageImageImageImage
B
54
S
15
G
5
Posts: 852
Reputation: 11,346


Return to How do I....?

Who is online

Users browsing this forum: Centra, DarknessGamingDK and 2 guests