Free Hype Templates 🏗

2 posts were merged into an existing topic: Topics on time triggers

The "Controlling" template is online...

It is in response to this thread...

Instead of a game competition, something more casual was planned. That means no prizes. Instead, there's a gift for everyone that wants to make games with Hype. It's called the Photics-Physics-Bridge. By adding this JavaScript library to your project, the gap between Matter.js and Hype's Physics API is bridged. In other words, it becomes easier to make games with Hype.

That's what this week's template is all about. It shows how to make a four-way controller with Hype, by using the PPB.

If you do make a good game with Hype, starting from April 20, 2021 until October 20, 2021, can show it off in the Year of Fun :joystick:

2 Likes

Just a heads up, while working on the App version of A Book About Hype, I updated the "Origin" template...

I realized that the previous method that I was using to animate the crosshair was excessive. I switched it to use SVG animation — much easier.

origin-animated

1 Like

The “Looking” template was updated. It's much cleaner and more modern now. Also, the YouTube video is online.

hype-template-02[Hype #2] The “Looking” Template (When Is It Necessary To Write Your Own Code?)

1 Like

This post is to let you know that some of the earlier templates have been updated recently. In particular, the first "fps" template was updated.

It didn't have the optional duration value, which lets the needle in the FPS gauge move more smoothly. Also, it's better coding to use innerText instead of innerHTML, when possible.

This is next video for Photics.TV, but it's not ready yet. Meanwhile, I lost track of which other templates were update. HEH! So, see Photics.com for the latest versions of the templates.

Also, @jonathan, I noticed a problem…

It looks like a thumbnail images is included in the Template. This doesn't seem like a good idea. The screenshot is bigger than the rest of the template. So, for these free Hype templates, I've been manually removing the thumbnail images from the updated templates.

1 Like

This is a cache, so it is a disk space vs. performance issue. If thumbnails are not included then scenes need to be fully loaded and rendered when the document opens. This can potentially take a lot of time, CPU power and RAM, so we favor maintaining a cache. You're welcome to delete the thumbnails if you do not want to incur the costs of disk or transfer.

That's too bad. This seems like it could be a user preference, or even one of those cool terminal commands.

1 Like

Maybe try an Automator Folder Action that runs a script to rm *.hype/Thumbnails/* or something like that.

Hah, those two little characters look so innocent and they are so long as you know how to use them.
If you are not familiar with its usage and there is a small typo, it could lead to very unexpected Permanent Deletions. (even for the familiar )

Personally I would use something like this which moves them to the Trash bin.

1, find Finder items

  • set where to look
    -set kind is other and to Hype Document Template

2, Get folder contents

3, Applescript

  • will filter and move to trash.

on run {input, parameters}
	
	repeat with i from 1 to the number of input
		set this_item to (item i of input)
		set this_info to info for this_item
		if name of this_info is "Thumbnails" then
		 
			tell application "Finder" to delete this_item (* moves to trash *)
		end if
		
	end repeat
	
end run
1 Like

Just a heads up! I didn't forget about the Tumult Hype series of videos on Photics.TV. I'm planning to launch the “Captials” video on Veterans Day, since that template has a big American flag. :us:


UPDATE: The video is scheduled to launch on 2021-11-11T13:00:00Z and here's the link…

The “Capitals” template was updated too.

  • Uses Hype's customData API instead of “window” Global Variables
  • Switched one stray innerHTML to innerText
  • Changed hover style, as it was blurry in Safari when scaled
1 Like

The “Multilingual” video should be on Photics.TV soon. In preparing for the video, I updated the code.

3 Likes