Some Questions :)

Discussion and feedback on Construct 2

Post » Tue Jan 22, 2013 5:50 pm

Hey hey everyone!

First of all, sorry if my english is some kind of bad, Im not a native speaker. :)

Downloaded C2 a few days ago and now im totally addicted. As a designer, i always wanted to insert my stuff in to games, without coding to much. THX for that :)

After some exercises and solving some problems googeling, some questions came to my mind.

Here they are.

1. Is there any possiblity or tutorial on how to structure the code? I just added event to event, thinking about what i need next, but thats pretty confusing. Why cant I shift+click more than one event for example? Sorry if this sounds to easy for some of you, but im a total Noob in stuff like that :D

2. How do I combine more Layouts (Menu-Screen/Level1/Level2 for example)? Do I need to buy it to do stuff like that?

3. If 2 is possible, does an event sheet have effect on all of the layouts? How do i set up right for each level?

4. Is there any possibillity to add a life bar? I solved this problem by making an animation with 10 Pictures, making the bar shrink, but that needs to much "compare instances" and seems pretty unusal!

5. is it possible to make a 1 on 1 online game for facebook or something? Read a lot about that and it seems to be pretty tricky but possible, doesnt it? And how about blue tooth games from screen to sreen (phone tophone) Is there any possibility to make a bluetooth realtime game?

puhhhhhh, thats it for the moment. Please dont kill me, if there are some questions already solved. Its not easy to find through this masses of information :)

THX in advance
B to the licious :D
Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Tue Jan 22, 2013 6:17 pm

I'm not sure to understand question 1 so I'll leave it aside for now.

Question 2 and 3 should be answered thanks to this tutorial, an implementation for question 4 lies in this tutorial and this same tutorial might possibly answer question 1 (it's a video tutorial displaying some workflow).

Question 5, well...
Already complete the 4 first questions/2 tutorials and then we might talk again about 1 on 1 online game.
It's been made more reachable in r116 thanks to the addition of websockets, but you still need to code an external server.
I don't know if facebook allows such games (probably), and be aware it won't be real time, but turn based is possible.
For the bluetooth realtime, I don't think it's possible at all (you would have to check HTML5's bluetooth support I guess).

You might want to read and check some other tutorials linked in this one, they should give you more experience and a better idea of how to use Construct 2.

Also rather than google, prefer a forum search you might get more interesting/precise results.Kyatric2013-01-22 18:18:54
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 » Tue Jan 22, 2013 6:18 pm

Hello Beaverlicious,

Almost everything you are asking about is either in the manual, the tutorials or the forums. You just need to use the search box here on the site.

Here are a couple of answers though:

Each layout is basically a level or room. TO create a new level, you simply create a new layout. There are system events to load layout so you can say when X happens, load layout Y. You just need to create new layouts in the project window.

Each Layout has it's own event sheet. If you want to use an event sheet in multiple layouts, you need to use the include option in your layout. This will let you use multiple event sheets and reuse sheets between layouts.

There are multiple posts on creating lifebars in the forums.

There are also tutorials and forum posts on creating multiplayer games as well as facebook integration etc...

I recomend you take some time to search the forums and the manual. Searching for thigns like "life bar" and 'Event Sheets' will get you al ong way...
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Tue Jan 22, 2013 7:07 pm

hey,

thanks for the friendly and quick response :) sorry, if i didnt read enough in the FAQ, Tutorials etc...
forum search instead of google search was a good tipp too ;-)

i know you are sick and tired off answering the same newbie questions all the time, but be sure that my best wishes will be with you :)
its often a bit tricky if you are a beginner, cause you read so many things that are different from others/dont work/just oppinions, that you loose control somehow. :)

question 1 was meant like that:

How do i structure a code the right way? I guess it shouldnt be a mix of this here/this there like in my project.

Perhaps someone can check it and give me some tips :)

http://dl.dropbox.com/u/39770627/Tannsylvania.capx

Would really like to get some Feedback on that :)
WASD- moving
mouse - shooting
1,2,3 - spells

The multiplayer question was just a look into future;-) I was just wondering if this bluetooth stuff works :)

ThX again and have a wonderful day!

Beaverlicious


Image
Check out our start-up and configure your own helmet in true 3D.
B
42
S
11
G
11
Posts: 1,152
Reputation: 9,886

Post » Tue Jan 22, 2013 9:20 pm

No worries, I am actually a newbie as well, I have only been using Construct for a couple of weeks. But as I have a lot of time on teh train during my commute, I have pretty much read most of the manual and spend time doing searches on the forms each day. I have also started downloading the CAPX files that others post when they ask questions and using them to try to come up with my own solutions. So it has helped me pick it up fairly quickly.

For structuring your code the easiest way I have found is to create multiple event sheets, for example one for player movement, one for enemey behavior, one for any events tied to that particular layout, etc... this gives you a much better chance of finding issues if you know where the code that effects a particular object is.

For alternate controls, you can use the platform simulate control action. This lets you say for example, if they hit this button, simulate the platform Up action, or the platform left or right action. That way you can have other buttons that respond the same as the arrows do. You can also just use the keyboard object and fire off events based on keypresses. Another option is a plugin that lets you create alternate control schemes.

One thing to keep in mind with creating your control schemes is that it is not always the best idea to translate your keyboard or controller based actions directly to touch screen. For example, if I want my character to do a wall jump, then on a controller I may want them to hit the jump button + the opposite direction of the wall on their controll pad. Or even more complex actions that require multiple buttons being used together. On a touch screen usually thumbs are being used so you can't easily do multiple button presses like that, so for touchscreen I actually combine or simplify my control scheme. For the above example, if it was touch screen, then for my wall jumping, I just require that they hit the opposite direction on my virtual directional pad, instead of forcing them to hit other buttons at the same time.

While it may take a bit more time on my end, the experience is better for those who are not using a controller or keyboard. You should go through the tutorials on intro to construct as it has you create the ghost shooter game that using mouse shooting, also the two tutorials on creating platformer games are great as well here they are:

Beginners guide (Ghost Shooter Game): http://www.scirra.com/tutorials/37/beginners-guide-to-construct-2

Creating a basic platformer in Construct:
http://www.scirra.com/tutorials/253/how-to-make-a-platform-game
http://www.scirra.com/tutorials/243/building-a-platform-game-a-beginners-guide

I am currently working on a series of tutorials on enhancing or adding more advanced platform behaviors to a game that I will be publishing to the tutorials section in the coming weeks.

Welcome to the site and as a fellow newbie here, I look forward to seeing what you make!
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418


Return to Construct 2 General

Who is online

Users browsing this forum: Eisenhans, Televangelist and 10 guests