Search found 59 matches

by NotARaptor
Wed Jan 23, 2019 10:28 am
Forum: Support and Development
Topic: Help for create bullet of tank
Replies: 5
Views: 5443

Re: Help for create bullet of tank

You need to work out your logic better; it's a bit confusing. The lifecycle of the projectile (obus) should be: - Does not exist / is inactive - obus.lance is false - do nothing - Is being fired right now : set x and y coordinates, set dx and dy, set obus.lance to true - Is being fired : obus.lance ...
by NotARaptor
Tue Jan 22, 2019 10:37 am
Forum: Support and Development
Topic: Help for create bullet of tank
Replies: 5
Views: 5443

Re: Help for create bullet of tank

Salut, bienvenu aux forurms. Le problème ici est que l'obus ne garde pas en mémoire sa direction/vélocité, il le recalcule à chaque `update`, donc il suit la tourelle. La solution c'est d'ajouter les membes `dx` et `dy` à l'objet obus, et de les garder au moment du tir. De plus, il me semble que l'a...
by NotARaptor
Fri Jan 11, 2019 12:05 pm
Forum: Support and Development
Topic: [Solved]i want to make the enemy kill the player but it keeps giving me the error(read below)
Replies: 4
Views: 3076

Re: [Solved]i want to make the enemy kill the player but it keeps giving me the error(read below)

I'd probably add a "break" after the player_die() call - if two or more enemies touch the player in the same frame, game_load() will be called that many times, and you probably don't want that.
by NotARaptor
Tue Oct 16, 2018 12:51 pm
Forum: Support and Development
Topic: Word Processor
Replies: 8
Views: 6365

Re: Word Processor

Hi Tuxion - the linked page explains what it is and why it is used, and has a link to the library itself.
by NotARaptor
Tue Oct 09, 2018 8:08 am
Forum: Support and Development
Topic: Help! Need help with bullet and enemy collision
Replies: 2
Views: 3325

Re: HELP! Need to center(offset) hitboxes so i can center them

This can be done in lots of different ways. The easiest, based on the code you've shown, would be to always assume that the x,y pair represents the centre of the enemy, both graphically and for hitbox purposes. (Note than in your code excerpt, the `hitbox` variable in your `spawnEnemies()` isn't use...
by NotARaptor
Wed Sep 19, 2018 2:42 pm
Forum: Games and Creations
Topic: Wÿld Ünÿcÿrns - A music-based shooterlike game made for music game jam 2018
Replies: 5
Views: 4621

Re: Wÿld Ünÿcÿrns - A music-based shooterlike game made for music game jam 2018

Cheers mate :) The shader code is messy as hell, I admit it! Very much a tinker with it until it works kind of approach. Squaring it doesn't work? Cube. Keep multiplying until it looks right! That code is from the overlay shader which it uses when you're low on mojo (or playing a musician who doesn'...
by NotARaptor
Wed Sep 19, 2018 9:23 am
Forum: Games and Creations
Topic: Wÿld Ünÿcÿrns - A music-based shooterlike game made for music game jam 2018
Replies: 5
Views: 4621

Re: Wÿld Ünÿcÿrns - A music-based shooterlike game made for music game jam 2018

I also wrote up a quick devlog, going into some of the bells and whistles that go on under the hood. https://notaraptor.itch.io/wyld-unycyrns/devlog/49054/an-overview-of-the-internals-of-wld-ncrns It doesn't go into anything Löve-specific, but all of the features listed there are implemented with Lö...
by NotARaptor
Mon Sep 17, 2018 10:09 am
Forum: General
Topic: I'm looking for a tutorial to create a scrolling text
Replies: 4
Views: 7293

Re: I'm looking for a tutorial to create a scrolling text

Hi Bernard51 Why do you need a tutorial? Do you know how to write text to the screen? It's love.graphics.print . The second and third parameters are the coordinates - modify them and the text moves... scrolling text. If you're looking for a specific type of scrolling text (Star Wars crawl, etc) then...
by NotARaptor
Mon Sep 17, 2018 9:09 am
Forum: General
Topic: What is your preffered way of creating games in LÖVE?
Replies: 2
Views: 2802

Re: What is your preffered way of creating games in LÖVE?

Hi meffcio! That's an interesting question, I don't think there's a single answer out there! Firstly, while it's great that you've got a good grounding in one coding style (OOP), you should remember that specifically what you know is Java OOP. Now I haven't used Java in a loooong time, but I don't t...