background preloader

Construct2

Facebook Twitter

Creating A Web Page Calculator Using The HTML5 Output Element. HTML5 includes a host of new input elements, such as the output tag. Using the output tag in conjunction with the “oninput” event listener, you can create simple or complex Web page calculators, giving the user instant results. The output tag allows you to build forms using semantic markup, since the element is specifically designed for displaying calculation results. In this tutorial we will create a simple Web page calculator to demonstrate using the output element.

Many of the new input elements are not well supported, but the output element is supported in all current major browsers except Internet Explorer. We will also be using the “oninput” event attribute, which is supported in all recent versions of the main browsers. Create an HTML5 Page Use the following outline to create your HTML5 page: We have sections for styling and scripting in the head, and our form elements will sit within the body. Create a Form Let’s create our form. <div class="equals"> = </div> Perform the Calculation. How to make a Title Menu. This .Capx tutorial attempts to show through demonstration, a method to quickly, easily and simply create a navigationable menu; using both a text based menu or sprite based menu to help the player comfortable navigate to the main game..

Demonstration An example of the simple menu has been uploaded and hosted in the Scirra Arcade. It can be found here. Click Here!. .Capx File Since the comments withing the .Capx file are used to explain the method used. It is worth downloading it to study. Tutorial Text Based Menu I apologies for the heavy use of images. 1 - Create text Objects 2 - Create Layers 3 - Create & Add Familes (Text to text family). 4 - Create & Fill Family Variables 5 - Start of Layout 6 - Mouse Over 7 - On Click Sprite Based Menu The second part for the "Sprite" menu can be found within the .capx, since it is similar in its use of family members, but used opacity and scale instead. As mentioned above the .capx can be found Here! Cheers,-Adam. Race Car Cam for TopDown Racing. In search for a better way to control the race cars in top down racers i found this solution.Its basicly a cam that is fixed to the players car, but moves around the car in the opposite direction of where u are steering at.The cam does look at the angle of the car but through its motion it ads a swiping motion to the screen.

Attachment Normal scrolling in topdown racers have you centered on the car.So u never have that feeling that the car is comming loose of the screen itself.A little delay would be nice but how right? With this method u are in control of the cam, and probably are going to ad some more features to it that i havent even considered yet.Its a basic template. Detachment How it works.A: The Yellow rectangle represents the car.B: The Cam represents the cam.C: And the green arrow represents the target angle of the cam.

Also in this image we can see 2 times a purple (+) and 2 times a purple (-).These represent the direction of movement.This setup moves in opposite directions. Tip. iOS game development in HTML5? or… How I learned to stop worrying and love the DOM - Scrambled. 9 letters, 1 word. It began with prototyping One of the issues we find with native iOS development is the amount of time lost in prototyping and exploration. We all have ideas, but the difference between a good idea and a good idea well executed can often be the final 1%, the massaging and testing various ideas and scenarios that can lead to a great outcome.

This exploration can be time consuming and less fluid with iOS, recompiling, rebuilding etc. For this reason, a while back we chose to use HTML5/JS for our prototyping. Testing game concepts in the browser really allowed us to put the idea first, not the code. We could spend a matter of hours determining whether or not a game concept had any legs. We could make a change and just refresh the page. This made a huge change for us. And this was the path on one such project, Scrambled, where we really felt we had something. However, the more we played around in the browser, the more we realised this concept leant itself really well toward HTML5. Media Queries. Swipe based Smooth Scrolling with Inertia. Intro I lot of people were asking for this in the forums, so I finally decided to write a tutorial for the same.

For my recent Windows Store game RikochetZ, I wanted to implement swipe based layout scroll mechanics. I wanted to make it as smooth as possible with the scroll speed based on the speed of the swipe with a gradual slowing down effect. I spent a few days experimenting and finally got it the way I wanted and I have described the same below for the benefit of the community.

You can find the example .capx file under downloads here. Also, click here to see the demo on the Arcade. Leveraging the “Scroll To” Property In this tutorial, we will be using the “Scroll To” property on an invisible sprite to get the desired results. Pardon me as I am not getting into C2 basics, but getting directly into the implementation. Step 1Add the “Touch” plugin to your project. Step 2Add an invisible sprite and add the “ScrollTo” and “BoundToLayout” (bound by Edge) behaviors to it. How does this work. Text input using TextBox (and invisible TextBox) Preparation For this part instead of plain Text object we will use Sprite font.Sprite font unlike the Text object is using an image to display text. As You can see, there's not much to change. That's because size, color and how your font look like is based on one image. Here's the file we'll be using.

Action part 1 Let's start where we left off but with Sprite font. Execution part 1 You should see the difference now. How to make an 'In-game Shop' Automatically pull up "keyboard" on devices?

Pretty photos

Using Mobile Keyboard (not possible yet) Hi all, I'm coming to the end of developing a mobile game but I've encountered an unusual error and I'm hoping someone may be able to assist me in how to solve the issue. ProblemWhen exporting to HTML my game offers a leaderboard where the user can enter their name using a textbox. Simply click inside, write your name and click send. Simple. This same mechanism on mobile (Exporting to CocoonJS) has a much more difficult approach.Tapping inside the Textbox results in nothing.

Solutions I've triedI've tested on multiple mobile devices and nothing on any of them. Am I missing something I'm supposed to do, or is this simply not possible yet? Thanks in advance for any help anyone offers EditSeems if I export the game to a HTML format and run it through the mobile browser the mobile keyboard works. Top game making tutorials. Beginner's guide to Construct 2 Well done for choosing Construct 2! Let's get started making your first HTML5 game. We'll be making the 'Ghost Shooter' demo game. Try it out here first so you know what we're aiming for: a player Read more How to make a Platform game Construct 2 can make all kinds of 2D games. 26th, January 2012 | byAshley Supporting multiple screen sizes Virtually every game has to work on a different sized screen. 29th, October 2011 | byAshley 6 Steps to Play with Players' Minds Open your mind, but be CAREFUL!

Delta-time and framerate independence Framerate independent games are games that run at the same speed, no matter the framerate. 10th, October 2011 | byAshley. HUD position on multiple screen sizes. Multiple Screen Size - Image size optimisation. Thank you @sqiddster! :) Well, as I would like to target mobile platforms, and I predict 50%+ of users in mobile, the simply increase of image sizes could drastically decrease the performance.

Since the topic open I found a theoretical solution:---------------------------------------------------- add HQ image versions to sprites as a serarated "HQ" animation- on start of layout check the window size- if it larger than the original go trought all image sprites, and set them active animation from Default to HQ- if it is smaller or equal to the original do nothing I can imagine an LQ version of images too for small mobiles with 480x320px screen. I'm sure, that someone here have experiance in what size could be used as the default. Another solution-------------------------As an example I found that non-C2 tutorial, where the developer started from 1024x768 and targeted 480x320 to 1280x800px. 1.

Start from small or large? Do you have any tested solution/logic to this? Auto-resize text boxes. Any non-game projects in construct? [How do I]Frequently asked questions. Create Android Games. How to make games:android,ios,widows phone with phonegap. How to make Android games. Create Android Games. Publishing and promoting your Construct 2 game. Construct 2 games run in a browser using HTML5 technology. This means there are many ways you can publish your games. Here's an overview of the ways to share your games with the world. There are also some other tips and points to consider before publishing your game. Before you publish Support touch controls These days there a lot of people browse the web on touch-screen devices like iPhones, iPads and Android phones and tablets. Different screen sizes HTML5 games can run on almost all modern smartphones, tablets and desktop computers. Offline support Construct 2 games can be played offline.

Publishing options On your server You can upload the exported project to your own web site and embed it in another page like a Flash game. If you don't have your own server, these days website hosting is very cheap. If you have your own server you should make sure the following MIME types are set in order for the game to work properly: Scirra Arcade You can upload your game to our own online arcade. Touch controls and a trick to detect input method. These days it's naïve to assume everyone on the web has a mouse and keyboard. On the modern web, many people are now browsing via touchscreen devices like iPhone, iPad and Android phones. If your game can only be controlled by mouse and/or keyboard, users on these devices will be unable to play your game!

However, it's easy to have on-screen touch controls - and there's a clever and simple trick to detect whether the user has a touchscreen device, too. Mouse input for touch First of all, if you're designing a game specifically for touchscreen devices, or your game only uses mouse clicks, use the Touch object. Set its Use mouse input property to Yes (it's No by default). That easily allows for both mouse and touch input, which for simple games is enough on its own. On-screen touch controls For many other games, on-screen buttons are necessary for controls.

Now, make sure that layer is selected. Remember big buttons are easier to touch! Alternative touch controls 1. 2. Further reading. How to make native phone apps with Construct 2 and PhoneGap. Construct 2 supports exporting your games and apps to major mobile platforms with Cordova. Cordova is an open-source software library that allows HTML5 games and apps to be published as native apps. It is the library that powers PhoneGap Build, the Intel XDK and Ludei's Webviews.

These build services save you from the hassle of setting up your own development environments for each platform, allowing you to easily build for multiple platforms at once. Building iOS apps You need to be registered with Apple as an iOS developer to build iOS apps at all (using any exporter). Supporting multiple screen sizes Different devices have different sized screens.

Test first over Wifi/LAN Publishing can be a fairly lengthy process if you just want to test your game. You must test on a real device during development! Exporting for Cordova platforms The Cordova export option works with any Cordova-compatible platform, which includes PhoneGap Build, the Intel XDK, and Ludei's Webviews. Publishing options. How to make a Platform game. Construct 2 can make all kinds of 2D games. In this tutorial, you'll be taken through the basics of making a platform game in Construct 2. If you're new to Construct 2 and would prefer to make a top-down shooter style game, check out this alternative beginner's guide. Ready to make a platformer? Let's get going! Note: please don't ask for help in the comments of this tutorial! Instead, head over to our forum to get the best possible response to any questions you may have. This tutorial uses the Jungle Platformer sprites from the bundle you get when you purchase Construct 2.

Installing Construct 2 If you haven't already, grab a copy of the latest release of Construct 2 here. Getting started Now you're set up, launch Construct 2. In the New Project dialog, you don't need to change anything. Size the layout First of all, we need the layout (level) to be a bit bigger than the default. Let's tile the background image across the layout. The mouse turns in to a crosshair. [Plugins] Pode HTML Pack. Update v1.42October 11 : check at the end of this post for new versions and bugfixes.This new build allows to set the "scrolling" property to "Auto | Yes | No" Update v1.41October 11 : check at the end of this post for new versions and bugfixes.This new build allows to set the "scrolling" property to "Auto | Yes | No" Update July 17 : check at the end of this post for new versions and bugfixesWith the iframe, you can embed a webappp made with C2 inside another webapp made with C2 !

The original HTML Pack is from JesseJoh, and can be found here : I originally added some modifications (and bugs) to his creation, since he's overworked. The first one is HTML Iframe.You can rotate the iframe, and the "OnLoaded" trigger now works correctly. Plug-in & Behavior Icon-pack. I like to do graphics and I like when things are neat and clean. So I started redoing some of the icons for the Plug-ins and Behaviors, so that they are in the same style and color as the original ones (Teal/Black & Orange/Black). You can get them here: Alternative icons which are marked as downloaded plug-ins are probably coming later. - Pack 1 Contains -* rex_timeline* canvas* sirg_tiled_sprite* pode_QRCode* pode_qrdecode* rex_cooldown* rex_moveto* rex_swing* rex_step* rex_zigzag - Pack 2 Contains -* rex_date* 7_Dropbox* rex_container* rex_video* rex_sequence_matcher* rex_gleam* rex_timer* spaceship* boids* pode_splinepath - Pack 3 Contains -* rex_nickname* pode_html_string* pode_html_iframe* pode_html_div* pode_html_img* rex_bnickname* rex_revive* rex_physics_gravitation* CarPhysics_0_1* rez_rogue.

ENIGMA, a free and open source Game Maker clone. How to add piracy protection in Node-webkit? C2 Plugins and Behaviors List. [Postmortem] : tactile table project. [Behavior] Sprite Effects & inject Text on Sprite. [PLUGIN] Radio & Checkbox. [PLUGIN] focus for textbox. Swipe based Smooth Scrolling with Inertia. Spriter support in Construct 2. IOS/Mobile Touch Scrolling Example. Brand new, need help with Drop down menu? Tutorial: Construct 2 - Scrolling Textures. Construct 2 Tutorial - Arcade Style High Score. Construct 2 Tutorial - Making Interactive Buttons. Tutorial: Construct 2 - Title Menu. Parallax In Construct 2 | Awesomeness! LevelSelect Tutorial In Construct 2 | Level Selection. [Behavior] Scroll down (for textbox plugin) Textbox shaking problem, retro graphics. [Plugin] Advanced Textbox. [PLUGIN] ComboBox & ListBox. [r132] Still jittering buttons. Buttons Shaking. [example] How to make a configurable Slider. [example] How to make a configurable Slider.