Almost done with my first game, but I need help

Get help using Construct 2

Post » Thu Jul 19, 2012 6:02 am

Hey everyone, I have few questions and my first game will be complete.

-How do I collect the ruby's and have an indicator above saying how many you collected?

-How do I make it to where to screen will fit any screen size being the largest it can be (eg. 800x600, 1440x900, 1920x1080).?

-I have some enemies across the map and I copied them, but I noticed that the copies (not clones I was just holding Ctrl and pressed left click to drag a copy) will not move until I kill the original.

-How do I make the level end once I reach the end?

Last question is what is the difference between a capx and caproj

I am thankful for any help
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Thu Jul 19, 2012 6:31 am

Here is the capx

https://www.dropbox.com/s/ryom0vrmfg6ry9f/Jungle%20Tutorial%20%28Hulk%29.capx
B
23
S
6
G
3
Posts: 122
Reputation: 2,922

Post » Thu Jul 19, 2012 7:11 am

[QUOTE=MAVERICK] Hey everyone, I have few questions and my first game will be complete.

-How do I collect the ruby's and have an indicator above saying how many you collected?[/quote]
I haven't downloaded your project (20 mo, I'm not up for it right now on my slow connexion).

Have a global number variable "Collected"
But the idea is to have an event that checks the collision between the player character and the "ruby".
As actions: destroy the ruby, add 1 to "Collected" (the global variable).

For the indicator, check the page 7 of the beginner's guide, it will show you how to make such a HUD.


[QUOTE=MAVERICK]-How do I make it to where to screen will fit any screen size being the largest it can be (eg. 800x600, 1440x900, 1920x1080).?[/quote]
Tutorial: supporting multiple screen sizes
Basically it's the "Full screen" property of your project.
Manual entry: Project (with an overview of its properties)


[QUOTE=MAVERICK]-I have some enemies across the map and I copied them, but I noticed that the copies (not clones I was just holding Ctrl and pressed left click to drag a copy) will not move until I kill the original.

-How do I make the level end once I reach the end?[/quote]
You can find an answer and examples to those questions listed in the how do I FAQ.

[quote]Last question is what is the difference between a capx and caproj[/quote]
Manual entry: Saving and sharing projects


Be sure to check the tutorials and read the manual most of the answers to your questions are already there.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,999
Reputation: 57,793

Post » Thu Jul 19, 2012 7:23 am

Hi there Maverick
Im not having too much time for now to answer you, but at least I will try to answer few of them now.

  • Ive done a global variable called "Rubys", and have added two events each time you collide with on eof the rubys (or emeralds in your code): it add 1 to the global variable, and set text to rubys var (Ive added a new layer without parallax and a textbox in there). You can do the same with your player "emerald" var, simply update the textbox every tick (or every time you collect an emerald, I think this is a better idea) and set the textbox text to players emerald var value.

  • In project properties, change the fullscreen to "scale" (for example) and you are done. Check this article to learn more about this: Supporting multiple screen sizes.

  • I think the unique difference between capx and caproj is that, in the first one, everything is stored in one single file, between, in caproj format, there are folders and files.


Ive uploaded your capx (modified) here with this little changes, not sure they are the best way, but ey, they work and everybody will learn in this post :): Capx download (r99).sirLobito2012-07-19 07:24:23
B
14
S
4
G
3
Posts: 106
Reputation: 4,792

Post » Thu Jul 19, 2012 7:26 am

Woops, @Kyatric has been faster than me (and surely, more helpfull ).
I think I got the same idea for the first of your questions so you can download the capx Ive posted and take a look at it :).
B
14
S
4
G
3
Posts: 106
Reputation: 4,792

Post » Thu Jul 19, 2012 7:52 pm

Thanks to both of you. When I return to my home I will get all of this done.
B
23
S
6
G
3
Posts: 122
Reputation: 2,922


Return to How do I....?

Who is online

Users browsing this forum: davides, Vallar, Walessio and 26 guests