How to draw a trail after a swipe movement in Unity

I am going to show you how to draw a swipe movement in Unity.

The final effect will be like this:swipe preview

Here is the video showing how to do it:

And here is the script:

using UnityEngine;
using System.Collections;</code>

public class CursorBehavior : MonoBehaviour {

private bool touched;

// Use this for initialization
void Start () {

touched = false;

//make it desappear
GetComponent<MeshRenderer>().enabled = false;
}

// Update is called once per frame
void Update () {

//when screen touched -&gt; update cursor position

Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if(Input.GetMouseButtonDown(0))
{
touched = true;
} else if(Input.GetMouseButtonUp(0))
{
touched = false;

} else
{
if(touched == true)
transform.position = ray.GetPoint(2);
}
}
}

Path to Glory

Coming in a few days.

ic_launcher-web


There’s no routine

Time has passed and i was unable to produce a new app in 15 days (the deadline was 17 April), let alone update this blog. Unfortunately i was unable to keep a schedule the last 3 weeks or so. No heart feelings. I have a new Idea in my pocket and i am determined to make it an app in no time. 

Let’s do this!

Next deadline – > 12 May


Scavenging for a new idea

3 days have passed and i still don’t know what i am going to do. Maybe there’s more anxiety now, without an idea, than 1 or 2 days before the due date to deliver a new game.

What am i going to do? It even hurts to think…


Game 1 – “BulletMan” – Done


Get it on Google Play


2 days late.
Next one due on 17/04 🙂


Final stages in rapid development

Final stages in rapid development

Fast update:

Today my deadline ends and i should submit my game to google play. So it happens i still have to run some final tests and finish the stage package.
I talked to myself and, after some serious discution, i decided to give me another two days.
With this i have less two days to my next creation. Let´s see what i can do.

Concepts of note:

– Ragdoll physics

– Box2d collision

– Camera focus on 2 entities

– Admob integration with Andengine

– Should run on every recent tablet of phone

– 8 bits sounds

See you in 2 days.

PS: without my brother’s help, i would need another day to make the images required to submit an application to google play. Thanks Alex and keep up the good work!


Inspiration

I am inspired to start a new challenge.

The challenge to develop a new Android game every 15 days. Not just thinking about it, not making excuses. In order to be succeded i need to actualy submit every game to Google Play and share the progress with my network. If all goes acording to plan, after 6 new games i should be able to choose one of those to make a second development iteration, so i can improve that concept. I shall be able to choose that game according to my network feedback.

I intend to achieve 3 main goals with this approach:

1. Be quick to materialize ideas

2. Improve programming skills and ideas development through feedback

3. Find new gaming concepts

So, let’s do this.

Having started 15 March, next milestone 1 of Abril, my first game submission.