Some questions, total newbie

For questions about using Classic.

Post » Thu Dec 23, 2010 1:22 pm

Hey guys! I'm making my first game, a generic SHMUP, and I have some questions.

1- Can I make a "sprite" object, when spawned, select a random animation frame and stay static? I tried doing it, but it kept cycling trough the frames.
2- If I use a downloaded font, does the player need the font installed to play the game properly?
3- How to store variables in a text file? And like in Tower Climb, how to make the game detect if the file was altered?

Thank you in advance and sorry for my craptastic English.
B
3
G
2
Posts: 10
Reputation: 695

Post » Thu Dec 23, 2010 3:25 pm

1 - Sprite > Set animation to random(5)
Sprite > Pause animation

2 - Yes

3 - You can use the INI or the Array object. The INI is more simple and easy to group information, and the array is better if you want to store a lot of numbers
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Thu Dec 23, 2010 3:39 pm

Thank you so much, 7Soul! I'll leave this open in case I have any more issues.

Edit: Alright, I have a 8-frame animation, each frame being a ship. I used the solution you gave, but it just worked for the original "enemy" object that was outside the layout. The other enemies are generated in the template, and they all seem to pick frame one. How do I solve this? I tried setting the event to "Is on-screen" and "Is visible", but these don't seem to work.

Edit: Solved! If anyone is wondering, I just made the enemies generate a little bit above the layout.
B
3
G
2
Posts: 10
Reputation: 695

Post » Fri Dec 24, 2010 3:41 pm

Ok, new question. Can a text object display a global variable? All I could get was for it to display a private one.
B
3
G
2
Posts: 10
Reputation: 695

Post » Fri Dec 24, 2010 4:09 pm

Set text to: global('variable')

Found in the expressions for the system object.
Moderator
B
87
S
32
G
33
Posts: 3,005
Reputation: 27,397

Post » Sun Jan 09, 2011 9:42 pm

one is still left unasweared
[quote:1ml2wky2]how to make the game detect if the file was altered?[/quote:1ml2wky2]
ImageImageImageImage
B
26
S
7
G
7
Posts: 572
Reputation: 6,097

Post » Sun Jan 09, 2011 11:11 pm

[quote="irbis":3kkrgohi]one is still left unasweared
[quote:3kkrgohi]how to make the game detect if the file was altered?[/quote:3kkrgohi][/quote:3kkrgohi]
The most straightforward way would be to retrieve a checksum, like CRC32, store it and compare it every time the game runs.
B
11
S
2
G
3
Posts: 100
Reputation: 2,150


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 4 guests