Search found 54 matches

by NotARaptor
Mon Feb 25, 2019 12:15 pm
Forum: Support and Development
Topic: Any way to make the window transparent?
Replies: 6
Views: 1280

Re: Any way to make the window transparent?

I can't test right now, but I have used a lot of win32 apis in the past (in C/C++) including these ones. I think that firstly you need to call SetWindowLong (or is it SetWindowLongPtr now? it's been a while!) to add the WS_EX_LAYERED extended style to the window, THEN call SetLayeredWindowAttributes...
by NotARaptor
Mon Feb 25, 2019 11:40 am
Forum: Games and Creations
Topic: Animated Grass
Replies: 1
Views: 1245

Re: Animated Grass

Hi Souxdentine - this board is to 'Show off your games, demos and other (playable) creations' - it seems your question would be better suited to the 'Support and Development' board. Also it's a bit light on detail; some screenshots or mockups of what you want to achieve would probably get a lot more...
by NotARaptor
Fri Feb 22, 2019 3:07 pm
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 84
Views: 40012

Re: [Library] anim8 - An animation library - v2.3.0 released

@grump, totally see your point, and so long as kikito doesn't mind his thread being hijacked, it makes for a great discussion. As with everything in development, there is rarely a one-size-fits-all solution that is optimal for every project, team and workflow. You can of course add this on top of an...
by NotARaptor
Fri Feb 22, 2019 11:59 am
Forum: Libraries and Tools
Topic: [Library] anim8 - An animation library - v2.3.0 released
Replies: 84
Views: 40012

Re: [Library] anim8 - An animation library - v2.3.0 released

I just want to chip in here and say that I really like your stance on the flow of information in the animation library here, even if it seems to be unpopular with (or just strange to) some users. I totally agree - business logic should dictate animation logic, and not the other way around. After all...
by NotARaptor
Fri Jan 25, 2019 1:56 pm
Forum: Support and Development
Topic: Help for create bullet of tank
Replies: 5
Views: 1591

Re: Help for create bullet of tank

I figured this would be your next question! Your issue is that you're trying to treat the variable "obus" both as an array of objects, and as a single object at the same time - which obviously doesn't work. Of course, the noun "obus" in French is both singular and plural, so that doesn't really help...
by NotARaptor
Wed Jan 23, 2019 10:28 am
Forum: Support and Development
Topic: Help for create bullet of tank
Replies: 5
Views: 1591

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: 1591

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: 484

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: 1370

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: 1000

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...