Free on screen controller template+ state system

Discussion of tools and resources for game developers

Post » Fri Feb 13, 2015 6:18 pm

Hi,

I made an onscreen controller template. The objects are pre-rendered in a 3D application.
Controller.png


The Joystick does not mimic an analog stick at the moment. If you would rather use it, just place the sprite under the D-pad button hotspot.
The color effect is turned off by default, let your users know that it is intended for fast computers.
Some uses for it:
  • On screen controller
  • Graphic to display on your keyboard config menu screen
  • Just use the re-bind-able keyboard system and toss the graphics.
  • As a template for your own graphics.
  • Toss the code, and just use the sprites.

The usable states are all located in the purple "Controller state" sprite instance variables.
  • Move left
  • Move right
  • Move Up
  • Move Up left
  • Move Up right
  • Move Down
  • Move Down left
  • Move Down right
  • Button A
  • Button B
  • Button X
  • Button Y
  • Button Start
  • Button Select

The default keycodes are on the keyboard input event sheet's global variables.

Known issues:
  • Can not use both touch and keyboard at same time. It automatically switches when it gets keys or touches.
  • If window looses focus in node webkit, the inputs get "stuck" sometimes. (windows 7 only)
  • No joystick or controller bindings yet. (Might come soon.)

The sprites are for HD games by default. You are welcome to scale the images, as long as the image remains 2x the actual sprite display size.

I am thinking of doing a commercial version for the Scirra store. If you have any requests please let me know. If you want something Custom for you game, please PM me. Do you guys think that $5-$10 is a fair price to ask for the non-free version?

Hope you enjoy it :)
OnScreenController.capx
You do not have the required permissions to view the files attached to this post.
B
28
S
8
G
4
Posts: 767
Reputation: 5,950

Post » Sat Feb 14, 2015 1:02 am

Thank's for the share
In what software you make this.
Image
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,145

Post » Sat Feb 14, 2015 1:52 am

A0Nasser wrote:Thank's for the share
In what software you make this.


Hi, I used Blender for this with the default rendering system. http://www.blender.org/

They have a great community here to help get people started : http://blenderartists.org/forum/forum.php

I am happy you like my controller :)
B
28
S
8
G
4
Posts: 767
Reputation: 5,950


Return to Tools and Resources

Who is online

Users browsing this forum: No registered users and 1 guest