Animales con platos de papel. Segunda parte.

Cabeza de conejo hecha con plato de papel

Un conejo que también se puede convertir en máscara. En DLTK’s Crafts for Kids están las instrucciones y los patrones, tanto en blanco y negro como en color.

Cabeza de oso polar hecho con plato de papel

Un oso polar.

Hay dos versiones. Ésta es una y la otra lleva algodón en toda la cara. La primera versión se puede convertir en máscara. En  DLTK niños están las instrucciones y los patrones.

Cabeza de una cebra hecha con plato de papel

Otra posibilidad es esta cebra. En  DLTK niños están las instrucciones y los patrones. Como en los anteriores también se puede convertir en máscara.

Cabeza de hipopótama hecha con plato de papel

Una hipopótama con corazones para enamorar a un hipopótamo. En DLTK’s Crafts for Kids están las instrucciones y los patrones.

Cabeza de elefante hecho con plato de papel

Un elefante es nuestro siguiente invitado. Como los animales anteriores lo tenéis en DLTK’s Crafts for Kids.

Incluye las instrucciones y las plantillas. También ofrecen la opción de hacer un zorro.

Cabeza de vaca hecha con plato de papel

Una vaca. Las instrucciones y los patrones los tenéis en DLTK niños.

Cabeza de caballo hecha con plato de papel

¿Que preferís un caballo? Pues en DLTK niños también tienen los patrones y lo podéis convertir en máscara.

Cabeza de pato hecha con plato de papel

Este es el último animalito que incluimos de DLTK’s Crafts for Kids. Cuenta con las instrucciones y los patrones.

Una tortuga hecha con un plato de papel

Una tortuga verde que te quiero verde. La cabeza, las aletas y la cola están hechas con goma EVA de color verde. El paso a paso y los patrones los encontraréis en Con las manitas pintadas.

Cabeza de dragón chino hecho con plato de papel

Un dragón chino que da un poquito de miedo. Es una propuesta de DLTK niños. Incluyen las instrucciones y las plantillas.

Pingüino hecho con plato de papel

Este es otro modelo de pingüino. El paso a paso lo tenéis en Our Potluck Family.

Dos conejos hechos con platos de papel

Aquí tenemos a esta pareja de conejitos tan graciosos. Si queréis hacerlos mirar en Kids craft room para seguir el paso a paso.

Dos ovejas hechas con platos de papel

En la misma página web tienen esta otra manualidad. Dos ovejas hechas con platos de papel. Además de las fotos del tutorial incluyen el vídeo en el que muestran cómo las crean. Aquí tenéis el enlace.

 

Publicado en Actividades escolares, Actualidad, Animales, Manualidades, Ocio infantil, Papel y cartón, Platos de papel, Reciclar

Animales con platos de papel . Primera parte

Si no sabéis cómo entretener a lxs niñxs cuando estén de vacaciones aquí os traemos algunas ideas.

Como material básico necesitaréis unos platos de papel y cartulina. Después, el resto dependerá del modelo que se quiera hacer.

¡Comenzamos!

Gato negro creado con plato de papel

Este gato negro es fácil de hacer. En Crafts by Amanda tenéis el tutorial y la plantilla en pdf.

Pasos a seguir:

Pintar el plato por completo de negro pero sólo por un lado. Colocar el patrón sobre el plato para recortar las diferentes piezas. Pegar las partes en su sitio y añadir a la cara ojos, nariz y bigotes. Y ¡ya está listo!

Dos dragones de color creados con platos papel

Estos dragones tan coloridos es una manualidad de Learn with Play at Home. Sólo con ver las imágenes se ve cómo son creados. Aquí lxs peques de la casa pueden disfrutar pintándolos a su gusto. Para acabarlos y poder jugar con ellos sólo añadirle unos palitos y ¡a volar!

Cabeza de cocodrilo hecha con platos de papel

Un hambriento cocodrilo te enseña la lengua. ¿Tendrá hambre? ¿tendrá sed? …

Si queréis hacerlo visitar Easy Peasy and Fan. Para este cocodrilo necesitaréis dos platos de papel y un poco de cartulina para los ojos, los dientes y la lengua.

En la misma entrada incluye otras propuestas para hacer también con platos de papel.

Cabeza hipopótamo hecha con platos de papel

Un hipopótamo es nuestro siguiente visitante. También necesita dos platos de papel.

Podéis seguir el paso a paso en I heart Crafty things y ver cómo han hecho otros animales.

Pingüino hecho con plato de papel

Nuestro amigo el pingüino no tiene miedo al calor.

En Woo! jr kids Activities os muestran cómo cortar el plato. El resto es sencillo. Pintar las partes, pegarlas y ponerle unos ojitos.

pingüinito hecho con un plato de papel

Este pequeño pingüino es más sencillo. En Learn with Play at Home tenéis el tutorial.

varias cabezas de animales hechos con platos de papel

Estos amiguitos estarán muy contentos de estar en tu casa. Aunque son muy distintos se llevan muy bien.

Si te interesa saber cómo se hacen visita First Palette. Allí también encontrarás otros animales como un reno y unos cerditos. Y si te interesan los osos pincha en el enlace y verás cómo hacer cuatro modelos de osos algodonosos.

Serpiente hecha con plato d papel

Una serpiente es otra opción interesante.

Un plato de papel decorado a gusto de cada unx y recortado en círculo. Añadimos unos ojitos, una lengua y ya está lista para jugar. En Crafty Morning la tenéis. Hay una versión en rojo y negro.

Cabeza de perro hecha con plato de papel

¿Que preferís un perro? pues aquí está Clifford. En Crafty Morning os muestran el paso a paso.

Cabeza de rana hecha con plato de papel

¿Quién no se acuerda de la rana Gustavo de Barrio Sésamo? Pues también se puede hacer su cara con un plato de papel.

Lo tenéis en Crafts by Amanda donde está el enlace con el tutorial y la plantilla.

Oso Paddington hecho con plato de papel

El oso Paddington.

El origen de esta manualidad fue el estreno, en su día, de una película cuyo protagonista era un oso. En Crafts by Amanda tenéis el tutorial y los patrones, además de incluir el trailer de la película.

5 Dinosaurios hechos con platos de papel

Los dinosaurios son unos animales que gustan a muchxs niñxs. Aquí tenéis a estos cinco.

En The Craft Train tenéis el tutorial y las plantillas.

Continuaré en la siguiente entrada…

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Publicado en Actividades escolares, Animales, Manualidades, Ocio infantil, Papel y cartón, Platos de papel, Reciclar

Best Laptops June 2017

Summer starts and so does traveling, and some of us need to keep working while on the go or enjoy watching movies or videos while sitting next to the fireplace. If that is the case, or if you are just looking for a great laptop that will cover all your needs, you have come to the right place. Here are the Best Laptops June 2017 for business, gaming, and media editing / mobile workstation.

Best Business Laptops June 2017

Choosing a business laptop is a delicate process. The key features to look for in a laptop for business use are great battery life, fast storage, and a good keyboard. The top pick for the Business Laptop category goes to Acer Aspire E 15 E5-575G-57D4, an amazing laptop with some impressive specs: a fast i5 processor, DDR4 memory, a 256 Gb SSD and a Full HD screen.

Top Pick – Acer Aspire E 15 E5-575G-57D4

Acer-E5-575G-57D4-15-6 Acer did an amazing job at packing a lot of features into a little, portable laptop. Featuring a dual core, 7th gen i5 processor with Hyperthreading, that will handle pretty much anything you throw at it. It has a dedicated GeForce 940MX, which is a big plus considering a lot of laptops don’t have dedicated graphics at this price point. The 256 Gb SSD will make Windows 10 fly and file transfer lighting fast. Another great feature is the backlight keyboard, that for people like me, that stay up late doing work, is a must. If that wasn’t enough to convince you, you also get the latest in Wi-Fi technology with MU-MIMO, that will ensure great network performance, even in traffic-heavy areas. Since 256Gb may not be enough for some of us, the laptop also features 2 x USB3.0 ports and the “new” USB-TypeC port, for fast transfer speeds if you need to move files to an external USB or USB-HDD.

Acer Aspire E 15 E5-575G-57D4 Specs

SpecificationValue
Price579.99$
CPUi5-7200U
CPU Cores2
RAM8 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD256 Gb SSD
GraphicsGeForce 940MX - 2 Gb GGDR5
Avg.
Battery Life
12 h
USB Ports2 x USB 3.0 Ports - 1 x USB Type-C
Wi-Fi802.11 A / C - MU-MIMO
Bluetooth?Yes
OSWindows 10 Home 64-bit

Amazon.com – 579.99$

Another great pick – Asus P2540UA-AB51

ASUS P-Series P2540UA-AB51

Coming next is the Asus P2540UA-AB51, a more budget-friendly option, featuring a 7th gen i5-7200U CPU, 8gb of DDR4 memory and 1TB of storage (HDD). It also has a stunning 15.6″ screen with FullHd 1080p resolution, that will be great for both productivity and media consumption. The two main features that make this laptop stand out are a fingerprint scanner, and an integrated TPM chip that provides hardware encryption. So why is this in second place? The 1Tb HDD and the integrated graphics are a bit inferior from the Acer, as well as no backlight keyboard for this one, however, you get most of the great specs for 180$ less.

ASUS P-Series P2540UA-AB51 Specs

SpecificationValue
Price499.00$
CPUi5-7200U
CPU Cores2
RAM8 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD1 TB HDD 5400 rpm
GraphicsIntel HD 620
Avg.
Battery Life
9 h
USB Ports3 x USB 3.0 Ports 1 x USB 2.0
Wi-Fi802.11 A / C
Bluetooth?Yes
OSWindows 10 Home 64-bit

 

Amazon.com – 499.00$

 

Budget Pick – Acer Aspire E 15 E5-575-33BM

Acer-E5-575-33BM
If the Acer or the Asus are not for you, here some more great laptops that will not break the bank. The Acer-E5-575-33BM  packs a 7th gen i3-7100U CPU, 4 Gb of DDR4, a FullHd 1080p screen, and 1Tb of storage (HDD). The battery on this one won’t let you down, with an Avg. of 12h of usage. You also get the backlight keyboard, USB3.0, and USB Type-C ports. All of this for 349.99$.

Acer Aspire E 15 E5-575-33BM Specs

SpecificationValue
Price349.99$
CPUi3-7100U
CPU Cores2
RAM4 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD1 TB HDD 5400 rpm
GraphicsIntel HD 620
Avg.
Battery Life
12 h
USB Ports2 x USB 3.0 Ports - 1 x USB Type-C
Wi-Fi802.11 A / C - MU-MIMO
Bluetooth?Yes
OSWindows 10 Home 64-bit

 

Amazon.com – 349.99$

 

Best Gaming Laptops June 2017

Getting to play our favorite games while on the move is great, if you are like me, a match of Call of Duty or Battlefield is the perfect way to finish the day. To get the best gaming experience on a laptop, we are looking for a powerful processor, dedicated graphics, and a high-resolution screen. So here are the Best Gaming Laptops of June 2017 for gaming on the move.

Top Pick – ROG Strix GL502VM

Asus is not letting us down with this one. The ROG Strix GL502VM is a very powerful machine, featuring the lighting fast GTX1060 graphics card with a whopping 6 Gb of GDDR5 memory. Nvidia has done an amazing job at packing a powerful punch in a small package, and this is the best example. The features don’t end here though, this laptop also has a 7th gen i7-7700HQ CPU with Hyperthreading, 16 Gb of DDR4 memory, backlight keyboard, and an amazing 128Gb SSD / 1 Tb HDD combo. If that is not enough to satisfy your gaming needs, you also get a 15.6″, FullHd 1080p screen with G-Sync. Right now you may be thinking, “And how heavy and big is this machine?”, well, is less than 1″ thick, and it weighs only 4.9 lb!

ROG Strix GL502VM Specs

SpecificationValue
Price1298.00$
CPUi7-7700HQ
CPU Cores2
RAM16 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD128 Gb SSD + 1 TB HDD 5400 rpm
GraphicsGTX 1060 - 6Gb GDDR5
Avg.
Battery Life
5 h
USB Ports3 x USB 3.0 Ports 1 x USBType-C
Wi-Fi802.11 A / C
Bluetooth?Yes
OSWindows 10 Home 64-bit

Amazon.com – 1298.00$

 

Another Great Pick – Acer Aspire VX 15 Gaming Laptop

If you have a more limited budget, the Acer Aspire VX 15 Gaming Laptop is another great option for 200$ less. You are getting the same 7th gen i7-7700HQ CPU, 16 Gb of DDR4 memory, a GTX 1050Ti with 4Gb of GDDR5 VRAM and a 256Gb SSD. The downside is that you are not getting the 1Tb of HDD, but external Hard Drives are always a good option for bulk storage. The screen is an IPS – LED backlit 15.6″ with FullHD 1080p resolution. So what are you waiting for?

Acer Aspire VX 15 Gaming Laptop Specs

SpecificationValue
Price999.99$
CPUi7-7700HQ
CPU Cores2
RAM16 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD256 Gb SSD
GraphicsGTX 1050Ti - 4Gb GDDR5
Avg.
Battery Life
6 h
USB Ports2 x USB 3.0 Ports 1 x USB Type-C 1 x USB 2.0
Wi-Fi802.11 A / C
Bluetooth?Yes
OSWindows 10 Home 64-bit

 

Amazon.com – 999.99$

Budget Pick – ASUS ZX53VW

If you are a little short on budget, but still want to get great performance, the Asus ZX53VW is your best bet, featuring a 6th gen i5-6300HQ processor, 8 Gb of DDR4 memory, and a big 512 Gb SSD. You also get a FullHD 1080p screen with Ani-Glare and a Backlight Keyboard. The graphics card for this one is a GTX 960 with 4 Gb of GDDR5 memory. Although the price on this one is lower, you are not loosing a lot in specs. Whatever game is you want to play, this laptop will not let you down.

ASUS ZX53VW Specs

SpecificationValue
Price789.00$
CPUi5-6300HQ
CPU Cores4
RAM8 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD512 Gb SSD
GraphicsGTX 960 - 4Gb GDDR5
Avg.
Battery Life
6 h
USB Ports2 x USB 3.0 Ports 1 x USB Type-C 1 x USB 2.0
Wi-Fi802.11 A / C
Bluetooth?Yes
OSWindows 10 Home 64-bit

Amazon.com – 789.00$

 

Best Media Editing / Workstation Laptops of June 2017

Not all of us will be writing documents or playing games. Some may need some computing power for Graphics Design or Video Editing, that is why I’ve put together the best picks for Mobile Workstation / Media Editing laptops of June 2017. The features that we are looking for in a Mobile Workstation are a powerful processor, dedicated graphics, and good and fast RAM. So let’s jump in!

 

Top Pick – Lenovo Thinkpad P50

While this is probably not the most beautiful of the laptops, it packs some punch, so don’t let appearances mess with your head. This amazing beast packs an Intel Xeon E3-1505M Quad core processor with vPro technology, a Nvidia Quadro 2000M with 4 Gb of GDDR5 (Wow!), 16 Gb of DDR4 memory and a 256 Gb SSD. The screen is a 15.6″ FullHD IPS panel with some amazing viewing angles and colors. We also get a Backlit Keyboard, Fingerprint Reader, and 1 Thunderbolt port. Do you need more?

Lenovo Thinkpad P50Specs

SpecificationValue
Price1569.00$
CPUXeon E3-1505M
CPU Cores4
RAM16 Gb DDR4
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD512 Gb SSD
GraphicsQuadro M2000 - 4Gb GDDR5
Avg.
Battery Life
13.2 h
USB Ports4 x USB 3.0 Ports 1 x USB Type-C 1 x Thunderbolt 3
Wi-Fi802.11 A / C (2x2)
Bluetooth?Yes
OSWindows 10 Pro 64-bit

Amazon.com – 1569.00$

 

 

Another Great Pick – Dell Inspiron i7559-5012GRY

This pick is a hard one, the Lenovo P50 has great connectivity and powerful specs, but it lacks a better display that will accommodate the needs of those who do Graphics Design or Video Editing at higher resolutions. That is why the 2nd place for the Best Laptops June 2017, in the category of Mobile Workstations, goes to the Dell Inspiron i7559-5012GRY. This powerful workstation features a 6th gen i7-6700HQ processor, which is powerful enough for most applications like Photoshop and AutoCAD. You also get 8 Gb of DDR3 RAM, 1Tb of storage, with an 8gb cache. This means that the hard drive will perform a little closer to an SSD (but not quite) because the data is saved to the cache, which then is transferred in the background to the actual HDD. The highlight of this laptop, however, goes to the display, that is an amazing LED 15.6″ 4K display – yes your read correctly, 4K- that will blow your eyeballs out of their sockets. Do you have an excuse to not get it?

Dell Inspiron i7559-5012GRY Specs

SpecificationValue
Price808.95$
CPUi7-6700HQ
CPU Cores4
RAM8 Gb DDR3
Screen Size15.6"
Screen Resolution3840 x 2160
HDD / SSD1 TB 5400 rpm + 8 Gb Cache (Hybrid HDD)
GraphicsGTX 960M - 4 Gb GDDR5
Avg.
Battery Life
4 - 6 h
USB Ports3 x USB 3.0 Ports
Wi-Fi802.11 A / C
Bluetooth?Yes
OSWindows 10 64-bit

Amazon.com – 808.95$

Budget Pick – Lenovo 15

Not everyone has +800$ to spend on a laptop, and that is ok. Lenovo is coming to the rescue with this very affordable powerful machine. It rocks a 5th gen i7-5500U processor, which is not the latest, but it still packs a punch. The main selling point for this laptop is the dedicated R7 M360 graphics card because there is no such thing as a “Workstation” that uses the integrated graphics. It has a nice 8 Gb of DDR3 RAM, 1TB of storage, backlit keyboard, and Bluetooth. Let’s not forget about the FullHD display, either. So overall, this will do the job for a few years, especially if you are not going to be editing very high-resolution images and videos, which for 600$, it’s a very good deal.

Lenovo 15 Specs

SpecificationValue
Price600.00$
CPUi7-5500U
CPU Cores2
RAM8 Gb DDR3
Screen Size15.6"
Screen Resolution1920x1080
HDD / SSD1 TB 5400 rpm HDD
GraphicsR7 M360 - 2 Gb DDR3L
Avg.
Battery Life
4 - 5 h
USB Ports2 x USB 3.0 Ports 1 x USB 2.0
Wi-Fi802.11 A / C
Bluetooth?Yes
OSWindows 10 Home 64-bit

Amazon.com – 600.00$

 

 

 

La entrada Best Laptops June 2017 se publicó primero en The Tech Cave.

Publicado en Deals, Laptop, Main, Top

Anima2D Detachable Limbs Tutorial – Unity 3D

 

Hi, everyone! I’m back, this time we are doing something at a more intermediate level. We will be coding quite a bit, so I hope you are comfortable with C# and scratching your head a little. We will be making a system that will allow you to make parts of your character “detachable” like shown below:

Result

The inspiration for the tutorial came after playing (a lot!) of Plants Vs Zombies 2. If you’ve ever played the game, the zombies, as they are losing health, start losing limbs. We will create a similar effect, with a very simple system.

Getting Started

The first thing we need to do is to create a new project, make sure you set it to the “2D” preset, otherwise Anima2D can cause some trouble. After the project is open, we will import an Asset Package that has the character and the scene already set-up. To import it all you need to do is download it, and double-click on the file with Unity opened, a small window will appear, make sure everything is selected, then click on “Import”. After everything has been imported, navigate to the “_Scenes” folder, and open the “Main” scene. Then, if everything went right, you should see something like this:

Getting Started

Setting up the Limb Prefab

We will start by creating the “limbs” that will fall off the character:

  1. Create an empty GameObject and set it as a child of the Zombie GameObject.
  2. Change the name of the new GameObject to “Limb Pool”.
    • We will be putting all the limbs here
  3. Now add another empty GameObject inside of the “Limb Pool” GameObject.
  4. Change the name to “Limb Head”.
  5. Add a RigidBody 2D and a Sprite Renderer.
  6. Set the mass of the rigidbody2D to 2.5
  7. Set the sprite to the sprite of the body part that we want to make fall, in this case, the sprite of the head (there are a few, we will use “head”).
  8. Create a collider in a separate child GameObject.
    • That will allow us to rotate and move the collider freely.
    • I used a circle collider 2D with a radius of 2.15.
  9. Click on Add Component ->; New Script, and call it “Limb”.
  10. Open the new C# Script for editing.
  11. This is the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Anima2D;

[RequireComponent(typeof(SpriteRenderer))]
[RequireComponent(typeof(Rigidbody2D))]
public class limb : MonoBehaviour {

   public IEnumerator FadeTo(float initValue, float duration, float timeUntilStart)
   {
      //Wait
      yield return new WaitForSeconds(timeUntilStart);
      //References and color
      SpriteRenderer renderer = GetComponent<SpriteRenderer>();
      Color newColor = new Color(1, 1, 1, 0);
      renderer.color = newColor;
      float alpha = renderer.color.a;

      for (float t = 0.0f; t < 1.0f; t += Time.deltaTime / duration) { //Lerp the alpha and apply it newColor = new Color(1, 1, 1, Mathf.Lerp(initValue, alpha, t)); renderer.color = newColor; //If the object is transparent, disable it if(t > .98f)
         {
            gameObject.SetActive(false);
         }

         yield return null;
      }
   }
}

Code Breakdown


[RequireComponent(typeof(Rigidbody2D))]

[RequireComponent(typeof(SpriteRenderer))]

The “RequireComponent()” attributes will make sure that the limb has a RigidBody2D and a SpriteRenderer.


public IEnumerator FadeTo(float initValue, float duration, float timeUntilStart)

The FadeTo coroutine takes 3 arguments, “initValue” will determine the alpha value from which we start fading, “duration” is, well, the duration of the fade, and “timeUntilStart” determines how long it waits until it starts to fade.

 //Wait 
 yield return new WaitForSeconds(timeUntilStart);
 //References and color
 SpriteRenderer renderer = GetComponent<SpriteRenderer>();
 Color newColor = new Color(1, 1, 1, 0);
 renderer.color = newColor;
 float alpha = renderer.color.a;
 
 for (float t = 0.0f; t < 1.0f; t += Time.deltaTime / duration) { //Lerp the alpha and apply it newColor = new Color(1, 1, 1, Mathf.Lerp(initValue, alpha, t)); renderer.color = newColor; //If the object is transparent, disable it if(t > .98f)
    {
       gameObject.SetActive(false);
    }
 
    yield return null;
 }

Inside the coroutine, we first wait for a number of seconds, determined by “timeUntilStart”, we set up a reference to the Sprite Renderer, and we create a new color, white, with an alpha value of 0. We set the new color on the SpriteRenderer and then we copy the alpha value. Inside the for loop is where the magic happens. The for loop will reiterate for the duration argument. Inside of it, we use MathF.Lerp to interpolate the alpha value over time, the amount of interpolation is determined by t. We then assign the newColor to the renderer. Lastly, we check if the object is almost transparent, and if it is, we disable it. I went ahead and created another limb for the left arm, that is called “L_Shoulder_Limb”, using the same method as above.

If you did everything correctly, you should end up with something like this:

Limb_Complete

The RigidLimb Data Class

We will use a pure data class to store the references and GameObjects that each limb needs to do its function. In case you have never made a data class before, I recommend checking out this Unity tutorial. Now that we are on the same page, let’s make it happen!

  1. Go back into Unity, and create a C# script in the Assets folder, then open it.
  2. Delete the “MonoBehavior” inheritance and add the “[System.Serializable]” attribute above the class declaration, we will also need to add the “Anima2D” namespace by adding “using Anima2D;”.
  3. This is the code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Anima2D;

[System.Serializable]
public class RigidLimb
{
    //Prefab of limb and the bone in the character
    public GameObject limbPrefab, limbBone;
    //The bodyMesh that corresponds to the bone in the character
    public SpriteMeshInstance limbBoneMesh;
    [HideInInspector]
    //Reference to SpriteRenderer
    public SpriteRenderer limbPrefabRenderer;
    [Range(0, 40)]
    //The forces applied in FallingLimb -> LooseNextLimb
    public float detachForce, detachRotationForce;
}

Data class breakdown


using Anima2D;

[System.Serializable]

These two lines are very important, with “using Anima2D;” we are adding the Anima2D namespace, that way we can access the class “SpriteMeshInstance” which is the core component found in the BodyMeshes in the character. The [System.Serializable] attribute will allow Unity to use this as a pure Data Class (it’s more complicated, but for our needs that explanation is all you need, check this out for more info).


public SpriteMeshInstance limbBoneMesh;

This reference will allow us to access the BodyMesh’s script, to change the color to transparent when we make the “swap”.


[HideInInspector]
//Reference to SpriteRenderer
public SpriteRenderer limbPrefabRenderer;
[Range(0, 40)]
//The forces applied in FallingLimb - LooseNextLimb
public float detachForce, detachRotationForce;

The [HideInInspector] attribute will hide the “limbPrefabRenderer” in the Editor, this will only be a reference to the SpriteRenderer component, so we don’t need to show it. The [Range] attribute shows a slider in Unity to adjust the value of the two variables below. “detachForce” is the force applied to the “Limb” GameObject when we make the effect, giving that “pop” effect. “detachRotationForce” is a the force we will add with “detachForce” to make the limb rotate as well.

The Falling Limb Script

Once we are done with our first limb, we can create the manager script that will control the limb’s coroutine and position, as well as make the BodyMesh transparent. The script will be attached to the “Zombie” character. So let’s get started!

  1. Select the “Zombie” GameObject and click on Add Component-> New Script, and call it “Falling Limb”, then open it.
  2. Here is the code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class FallingLimb : MonoBehaviour {

    //Amount of time that it will fade, and the time it has to wait to start the fading
    [Range(0, 10)]
    public float fadeTime = 1.0f, timeUntilStart = 2.0f;
    //Reference colors
    Color color_a1 = new Color(1,1,1,1);
    Color color_a0 = new Color(0, 0, 0, 0);
    //List of RigidLimb
    public List<RigidLimb> rigidLimbList;
    //Index of current limb
    [SerializeField]
    int currentLimb = 0;
    bool isActive = true;

    private void Start()
    {
        ListInitialize();
        currentLimb = 0;
    }

    private void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            LooseNextLimb();
        }
    }

    void LooseNextLimb()
    {
        if (isActive)
        {	
            //Current limb in list
            RigidLimb limb = rigidLimbList[currentLimb];
            //Set the color
            limb.limbPrefabRenderer.color = color_a1;
            //Enable the limb and set position and rotation
            limb.limbPrefab.SetActive(true);
            limb.limbPrefab.transform.position = limb.limbBone.transform.position;
            limb.limbPrefab.transform.rotation = Quaternion.identity;
            //Apply the forces
            limb.limbPrefab.GetComponent<Rigidbody2D>().AddForce(new Vector2(0, limb.detachForce), ForceMode2D.Impulse);
            limb.limbPrefab.GetComponent<Rigidbody2D>().AddTorque(Random.Range(-limb.detachRotationForce,limb.detachRotationForce), ForceMode2D.Impulse);
            //Set the bodyMesh to be transparent
            limb.limbBoneMesh.color = color_a0;
            //Start FadeTo Coroutine
            limb.limbPrefab.GetComponent<Limb>().StartCoroutine(limb.limbPrefab.GetComponent<Limb>().FadeTo(1.0f, fadeTime, timeUntilStart));
            //Increase index
            currentLimb++;
        }
        //If we ran out of limbs, stop
        if (currentLimb >= rigidLimbList.Count)
        {
            isActive = false;
        }
    }

    private void ListInitialize()
    {
        for (int i = 0; i < rigidLimbList.Count; i++)
        {
            //Setup references and disable
            rigidLimbList[i].limbPrefabRenderer = rigidLimbList[i].limbPrefab.GetComponent<SpriteRenderer>();
            rigidLimbList[i].limbPrefab.SetActive(false);
        }
    }
}

Code Breakdown

First, let’s take a look at the variables we use:

    //Amount of time that it will fade, and the time it has to wait to start the fading
    [Range(0, 10)]
    public float fadeTime = 1.0f, timeUntilStart = 2.0f;
    //Reference colors
    Color color_a1 = new Color(1,1,1,1);
    Color color_a0 = new Color(0, 0, 0, 0);
    //List of RigidLimb
    public List<RigidLimb> rigidLimbList;
    //Index of current limb
    [SerializeField]
    int currentLimb = 0;
    bool isActive = true;

We use the [Range()] attribute to make Unity show a slider in the Inspector, it simply makes it look more neat. fadeTime is the duration of the fading, timeUntilStart is the amount of time that the limbs will “wait” until they start fading. color_a1  and color_a0 are two colors, one with 100% alpha value and 0% alpha, respectively.  The RigidLimb list is the list that will contain all the references and limbs we will be using. currentLimb is the index of the current limb in the list. isActive is a boolean that we will use to determine if we have reached the end of the list.

private void Start()
{
    ListInitialize();
    currentLimb = 0;
}

private void ListInitialize()
{
    for (int i = 0; i < rigidLimbList.Count; i++)
    {
        //Setup references and disable
        rigidLimbList[i].limbPrefabRenderer = rigidLimbList[i].limbPrefab.GetComponent<SpriteRenderer>();
        rigidLimbList[i].limbPrefab.SetActive(false);
    }
}

In the Start() method we call ListInitialize() and we set currentLimb to 0. The ListInitialize() function will set-up the reference with the SpriteRenderer in each limb, as well as disabling the limbs.

void LooseNextLimb()
    {
        if (isActive)
        {	
            //Current limb in list
            RigidLimb limb = rigidLimbList[currentLimb];
            //Set the color
            limb.limbPrefabRenderer.color = color_a1;
            //Enable the limb and set position and rotation
            limb.limbPrefab.SetActive(true);
            limb.limbPrefab.transform.position = limb.limbBone.transform.position;
            limb.limbPrefab.transform.rotation = Quaternion.identity;
            //Apply the forces
            limb.limbPrefab.GetComponent<Rigidbody2D>().AddForce(new Vector2(0, limb.detachForce), ForceMode2D.Impulse);
            limb.limbPrefab.GetComponent<Rigidbody2D>().AddTorque(Random.Range(-limb.detachRotationForce,limb.detachRotationForce), ForceMode2D.Impulse);
            //Set the bodyMesh to be transparent
            limb.limbBoneMesh.color = color_a0;
            //Start FadeTo Coroutine
           limb.limbPrefab.GetComponent<Limb>().StartCoroutine(limb.limbPrefab.GetComponent<Limb>().FadeTo(1.0f, fadeTime, timeUntilStart));
            //Increase index
            currentLimb++;
        }
        //If we ran out of limbs, stop
        if (currentLimb >= rigidLimbList.Count)
        {
            isActive = false;
        }
    }

Now where the magic happens, the LooseNextLimb() function does the following:

  1. Check if isActive is true, if it is, we carry on.
  2. We create a RigidLimb variable, mainly to make the code more readable, we then assign the current limb in the list to it.
  3. We set the color of the limbPrefab’s renderer to 100%.
  4. We set the limbPrefab to active, and we match the position and rotation with those of the limbBone.
  5. We then add the forces to make the “pop” effect with AddForce(), for the upwards force, and AddTorque() to make it rotate.
  6. We make the real BodyMesh be transparent.
  7. We call the coroutine FadeTo that is inside the limb.
  8. We increase currentLimb.
  9. If currentLimb is bigger than the number of limbs, we set isActive to false.

The script is relatively simple, so hopefully, your big minds can come up with ways to tweak it and improve it.

The LooseNextLimb() function will trigger with a left click on the mouse, as shown below.

private void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            LooseNextLimb();
        }
    }

If you wanted to make it so that whenever the zombie gets hit, for example, it looses the next limb, you should make the call to the function from OnCollisionEnter2D or the method that best fits your need.

Using the System

With all the script and limbs set-up, we can start actually making some limbs pop!

Let’s jump to the FallingLimb script that is in the “Zombie” GameObject, then let’s set the list’s size to 2 (depending on how many limbs you have). Once the list has opened, let’s go into the “Element 0” and click to open the dropdown. Inside the “Limb Prefab” slot we will drag the limb that we created. In my case, I will drag the left shoulder limb (remember that the order we put the limbs in the list DOES matter). In the Limb Bone slot we will drag the bone that corresponds to that BodyMesh, in this case, the L_Arm bone. The last reference will be the BodyMesh that corresponds to the Sprite in the Limb, in this case, the L_Shoulder BodyMesh. Last but not least, let’s set the forces, I will use 6 for “Detach Force” and 3 for “Detach Rotation Force”.

To add more limbs, simply repeat. If everything went ok, you should have something like this:

Final_Look

And that is it! You are now ready to play around with it, and come up with even better ways to use it!


Downloads

La entrada Anima2D Detachable Limbs Tutorial – Unity 3D se publicó primero en The Tech Cave.

Publicado en anima, Anima2D, anima2d documentation, anima2d tutorial, anima2d unity, anima2d unity 3d, anima2d unity tutorial, anima2d youtube, english, Game Developing, howto, teach, tutorial, Tutorials, unity, unity3d

Actividades interactivas EdiLim

edilim

Hace algún tiempo había preparado algunas actividades interactivas ,  de lengua (la mayor parte), matemáticas e inglés para alumnxs de primaria.

A continuación os dejo el enlace al índice en el que están recogidas todas ellas para que sea más fácil el acceso. En cada una de ellas encontraréis diferentes actividades y pinchando en la actividad elegida se accede directamente a la actividad interactiva.

Actividades EdiLim.

 

 

Publicado en Actividades EdiLim, Actualidad, Ortografía, Recursos educativos

Sopas de letras y crucigramas para trabajar la ortografía

sopa_crucigrama_blog

En el blog he incluido una nueva página llamada “Materiales en español” y en ella encontraréis diferentes materiales para trabajar la ortografía.

Son sopas de letras , crucigramas y actividades pensadas y utilizadas con niñxs a partir de 7 años. Es un material creado para hacer más ameno el aprendizaje de la escritura de palabras en español.

Están organizadas según la dificultad ortográfica que se quiera trabajar (palabras con b, v , h, g, j, gue, gui, go, gu, ca, co, cu, que, k, ll, y, x, z…)

Todo el material está escrito con la fuente de texto Open Dyslexic para que sea más fácil su lectura, sobre todo, para aquellxs niñxs con dislexia.

Próximamente iré incluyendo nuevo material. Por supuesto, se admiten sugerencias para mejorar el que aquí presento o para hacer alguna propuesta.

 

Publicado en Actualidad, Crucigramas para niñxs, Educación, Materiales en español, Ortografía, Recursos educativos, Sopa de letras para niñxs

Sombreros de flores para lucir esta primavera

Tres niñas con sombreros de papel de flores

¿Qué sombrero te gusta más? No te protege del sol pero llevas la cabeza muy floreada.

Lo primero que hay que hacer es dibujar dos círculos en una cartulina. El más grande hará de ala del sombrero y el segundo círculo será más pequeño y medirá lo que mida el contorno de la cabeza de quien lo vaya a llevar puesto. El círculo pequeño hay que dividirlo en ocho partes (ocho triángulos). Sólo queda dibujar, recortar y pegar las flores que le queramos poner.

Cómo una imagen vale más que mil palabras, para que lo veáis más clarito nada como visitar el blog krokotak y disfrutar viendo las diferentes creaciones.

 

Publicado en Actualidad, Flores, Manualidades, Ocio infantil, Papel y cartón

Regadera con vaso de papel

regadera_vaso

Os presentamos una regadera que, aunque no sirva para regar las plantas, si es decorativa y una sencilla manualidad para lxs niñxs.

Para hacerla sólo se necesita un vaso de papel, la plantilla para hacer el cuello en cartulina y unas tiras de cartulina para las asas.

Ahora que está cerca mayo puede ser una buena idea para regalar a mamá y/o papá.

La plantilla y los pasos los tenéis en krokotak.

Publicado en Actualidad, Día de la Madre, Día del Padre, Manualidades, Ocio infantil, Papel y cartón

Combining multiple pdf files on Linux using pdftk

Just a quick note on how to combine multiple pdf files on Linux using pdftk:

- Article in English
- Article in Spanish

Really easy... and useful :-)
Publicado en Sin categoría

Combining multiple pdf files on Linux using pdftk

Just a quick note on how to combine multiple pdf files on Linux using pdftk:

- Article in English
- Article in Spanish

Really easy... and useful :-)
Publicado en Sin categoría