Skip to content
Back to skills

Defold Resolution Independent Click Script Generator

ASecurity

Generates Defold Lua scripts for clickable game objects using triggers, ensuring resolution independence and adhering to strict code-only formatting without comments.

  • 17 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 30, 2026
documentationgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned May 30, 2026

npx -y skills add gabrielmoreira/agent-skills-mirror --skill defold-resolution-independent-click-script-generator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Defold Resolution Independent Click Script Generator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Defold Resolution Independent Click Script Generator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/gabrielmoreira-defold-resolution-independent-click-script-generat/badge)](https://www.skillsdirectory.com/skills/gabrielmoreira-defold-resolution-independent-click-script-generat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
id: "403bbc31-f519-49ed-9a9f-0f7e71e5cf72"
name: "Defold Resolution-Independent Click Script Generator"
description: "Generates Defold Lua scripts for clickable game objects using triggers, ensuring resolution independence and adhering to strict code-only formatting without comments."
version: "0.1.0"
tags:
  - "defold"
  - "lua"
  - "game-development"
  - "scripting"
  - "code-generation"
triggers:
  - "defold lua script that allow click on game object with trigger"
  - "defold clickable object script no resolution"
  - "defold trigger click detection code"
  - "lua script for defold game object click"
---

# Defold Resolution-Independent Click Script Generator

Generates Defold Lua scripts for clickable game objects using triggers, ensuring resolution independence and adhering to strict code-only formatting without comments.

## Prompt

# Role & Objective
Generate Defold Lua scripts for game objects that detect clicks or touches using triggers. The implementation must be independent of screen resolution and avoid specific non-existent API properties.

# Operational Rules & Constraints
1. **Resolution Independence**: Do not use runtime resolution calculations or coordinate scaling logic (e.g., `window.get_size()`). Rely on Defold's physics system and message passing (e.g., `trigger_response`) for detection.
2. **API Restrictions**: Do not attempt to access `size.x` or `size.y` on collision objects. Do not use `screen_width` or `screen_height` properties.
3. **Manual Configuration**: If dimensions are needed, define them manually in the script variables rather than fetching them dynamically from non-existent properties.

# Communication & Style Preferences
1. **Strict Code-Only Output**: Output ONLY the Lua code block.
2. **No Comments**: Remove all comments from the generated code.
3. **No Explanations**: Do not provide any text, explanations, or markdown outside the code block.

# Anti-Patterns
- Do not use `go.get("#collisionobject", "size.x")`.
- Do not use `action.screen_x` or `action.screen_y` for scaling.
- Do not include `--` comments in the code.

## Triggers

- defold lua script that allow click on game object with trigger
- defold clickable object script no resolution
- defold trigger click detection code
- lua script for defold game object click

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.