Comments (5)
Okay so, I just realized the squareX, squareY do not change the actual position, even with a exampleSprite.Position = NVec2(squareX, squareY) in the update function it still does not change it's position.
from z-sharp.
It seems to work if you change
func Update()
to
func Update(deltaTime)
and add the line
exampleSprite.position = NVec2(squareX, squareY)
Using deltaTime is supposed to be optional, so this is a bug. But when making a game, I recommend using this and multiplying it by movement speeds so they are constant.
from z-sharp.
thank you, it works perfectly!
from z-sharp.
Also, about the new lines question, It seems like I can't create any new empty lines, I also can't do things like
global Sprite player = ZS.Graphics.Sprite("./square.jpg", **NVec2(250, 250)**, size, 0)
I have to create a new variable just for the parameters.
from z-sharp.
Fixed in the newest release
from z-sharp.
Related Issues (20)
- [Linux] interpreter is corrupted HOT 1
- ZSharp segfaults if the font file that's loaded is missing
- Example Pong AI toggle confusion HOT 2
- ./ZSharp: command not found when trying to run it HOT 1
- Mac bianaries? HOT 1
- Arrays and dictionaries HOT 1
- How to compile for linux HOT 1
- Docs HOT 1
- Tutorial HOT 1
- Could you create one with classes? HOT 1
- macOS Not Supported
- Precompiled Binaries for macOS
- Add ZS.Math documentation
- Linux requirements missing HOT 4
- Support for Windows 32-bit HOT 2
- Please fix your float to boost::any conversion errors that I had to patch manually
- When following docs, window opens then immediately closes. HOT 2
- Unable to run Main.cpp. HOT 1
- cannot open source file "boost/any.hpp" HOT 1
- Added form editor HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from z-sharp.