flame-engine / flame

A Flutter based game engine.
https://flame-engine.org
MIT License
9.29k stars 913 forks source link

How to get the x & y coordinates of my sprite in a list of tiles #490

Closed salah-rashad closed 4 years ago

salah-rashad commented 4 years ago

How to get the x & y coordinates of my sprite in a list of tiles

Description

How to get the x & y coordinates of my sprite in a list of tiles

Development enviroment

Flame version: ^0.27.0

Flutter doctor:

 [√] Flutter (Channel master, 1.22.0, on Microsoft Windows [Version 10.0.18362.1082], locale en-US)

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
[√] Android Studio (version 4.0)
[√] VS Code (version 1.49.3)
[√] Connected device (1 available)

Runtime

This issue is related to running on which platform? (Select all that apply)

Minimal reproducible code (Required for bugs)

double x = getCoordinates(x); double y = getCoordinates(y);

renancaraujo commented 4 years ago

Hi @salah-rashad, When openning the issue, you probably had seen something like this:

We use Github issues for problem/bug reports, for questions please use the Discord channel The link for the Discord channel can be found on the projects README

Check discord: https://discord.com/invite/pxrBmy4