Spawn Random Objects :)

Get help using Construct 2

Post » Mon Feb 06, 2012 6:43 pm

What I wrote was just a kind of add-on, you still had to keep most of what was in the base capx. But you blindly remove too much stuff. Like setting the order instance variable, the start of layout destruction and x0,y0 setting and of course it was only the loop at start of layout, you have to copy the same one when you end a line (you can also use function to avoid copying this loop code)
Anyway
smitchArrow.capx
Last edited by Yann on Sun Sep 14, 2014 9:41 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Feb 06, 2012 8:36 pm

@Yann, I see now. But I found a bug, If you set the patlist to: "12341234"
when you press 4 - which should be the right arrow it doesn't recognize it as the correct arrow.
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Mon Feb 06, 2012 8:37 pm

Oops never mind this was me being dumb :P
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Mon Feb 06, 2012 9:01 pm

Wait! @Yann, it does seem to be a bug. Is this just me or are you experiencing this aswell?
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Tue Feb 07, 2012 10:06 am

@smitchell
be carefull:
0 = right
1 = down
2 = left
3 = up

The angle of the arrow sprite = a*90 that's why
if you use 4 the arrow sprite will be properly displayed (4*90 = 360), but the 'a' instance variable is also used to compare the input.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Tue Feb 07, 2012 12:00 pm

haha, I changed these to 2,3,0,1 for the hardmode, so you have to press the opposite key! tricky~ :)
B
18
S
4
G
5
Posts: 27
Reputation: 4,132

Post » Tue Feb 07, 2012 2:10 pm

haha some people got stoned to death with that kind of idea :D
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Feb 09, 2012 9:51 pm

@Yann, Interesting read of your code here! nice concept guys.

How hard would it be to make it more like a conventional music based game, where the notes come in on a timer and you have to hit the note at the target position to get it correct?

I tried:

System.Compare(Cur = aCount)
Every(1.0 seconds)
     -> etc
     -> etc

But I guess im completely off as usual?

I get the moving of thing, using lerp right? then if its over the target sprite and the correct key is pressed add 1 to good. I think im right there :)
B
6
S
1
G
1
Posts: 42
Reputation: 810

Post » Thu Feb 09, 2012 10:23 pm

very hard
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Thu Feb 09, 2012 11:17 pm

@Yann, ahh dammit!

I just want to have the pattered list, but tween the closest one to a target position, then if it's at that position and the correct key is pressed the badaboom! can you help me out? pwetty please *flutters eyelids*
B
6
S
1
G
1
Posts: 42
Reputation: 810

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: GSquadron, Yahoo [Bot] and 27 guests