Problems with progam

For questions about using Classic.

Post » Mon Nov 23, 2009 4:37 pm

im doing a direct x game with construct and im coding logically, but for some reason construct hates me

im making a platform based game, and when i try to get the screen to scroll with my platform character it... doesnt
i have a event that says Always (every tick) : System: Scroll to X Player.X
player being my platformed sprite

also im trying to get it so that the player only shoots 1 bullet every quarter second, but i cant figure out how to do it
i tryed making a private variable on player, and when V is down and the variables Count is 0 it fires a bullet
and set the value of count to 0.25
and then i have another event where if count i equal to or greater then 0.25 it subtracts 1*timedelta from the varialbe count.
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon Nov 23, 2009 5:03 pm

1:There's a check box in preferences that says center view on me.

2:Try the condition "Every x ticks" set to 250ms, than add your mouse & keyboard condition V is down by right clicking and choosing add new condition.

Have you tried the Ghost shooter, or Platform school tut's yet?
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Mon Nov 23, 2009 5:03 pm

[quote="newt":1z86qfvp]1:There's a check box in preferences that says center view on me.

2:Try the condition "Every x ticks" set to 250ms, than add your mouse & keyboard condition V is down by right clicking and choosing add new condition.

Have you tried the Ghost shooter, or Platform school tut's yet?[/quote:1z86qfvp]

yea, i used the platform tut for this, and i couldnt get his scroll to x event to work
thanx for the tips thoug
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon Nov 23, 2009 5:42 pm

Another question, when it shoots, it plays the shoot animation for only a split second, how do i get it to play the anim for longer after the shot is fired?
B
1
G
3
Posts: 4
Reputation: 833

Post » Mon Nov 23, 2009 6:46 pm

If it's a separate animation you could probably just change the length of the cycle in the animator preferences.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Sun Dec 06, 2009 2:12 pm

I won't bother moving this, but in future can you please post questions in the proper section. You will get a faster reply and probably help from several people on the topic.

You can find the proper Help section here:
viewforum.php?f=3

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Sun Dec 06, 2009 5:00 pm

Not sure how I missed this one, I've moved it in to help & tech support.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 8 guests