Articles

Affichage des articles du juin, 2020

Gmamemaker Studio 2: Simulate a light effect around a sprite (player, fire, explosion...).

Image
The player is followed by the obj_playerLight Hi all! This light effect is a kind of hole into a dark surface over layers of your game. This surface can be placed whereever you want: over all layers or between two layers. You can set the darkness intensity with alpha between a value from 0 (no darkness) to 1 (totaly black). We are going to create a light object associated to a sprite. This sprite is a simple white circle (Fig. 1). But you can use an animated sprite (Fig. 2).   Fig. 1 obj_playerLight    Fig. 2 obj_playerLight2 If you use a simple white circle, it would be interesting to make it animated by increasing and decreasing the radius with the function draw_sprite_ext. obj_playerLight: Create, Step and draw event. obj_playerLight2: Create, Step and draw event. Thanks for reading! Pssst! Play my game!!! Ghost'n Brothers 1bit (free) and Ghost'n Brothers (paid version). Only on iOS.

Do things with draw_line function: connected lines

Image
This tutorial is for beginners to learn how to use draw_line and draw_point functions and arrays. If you like math, add cosines and sines to do nice things just for fun! We will create a broken line with the draw_line_color and draw_point_color functions. The function draw_line_color(x0, y0, x1, y1, c_green, c_green) has 6 arguments. The first 4 correspond to the coordinates of the points (x0, y0) and (x1, y1) between which a line segment will be drawn. With each click on the screen, a point will be created which will be connected by a line segment to the previous one. For this, we will have to use a "loop for " with the " draw_line " function. So I have created 4 arrays AX, AY, BX, BY to record the coordinates xn, yn, xn+1, yn+1. Fig. 1, shows the organization of the x and y coordinates in the arrays. Fig. 1: 4 arrays to store coordinates You will notice that we always have, for all the arrays, the coordinates of the previous point and the next po

ScreenShake - Gamemaker Studio 2 - Methode 1 & 2 - Tuto fr complet

Image
Deux méthodes pour créer un tremblement d'écran (screenshake). Méthode 1: L'objet est créé à la demande, puis détruit une fois son rôle terminé. Il faudra recréer cette instance à chaque fois que cela sera nécessaire. Méthode 2: L'objet créé sera juste désactivé en fin d'action, puis sera réactivé en fonction des besoins

GameMakerStudio 2: GUI Layer and multi-touch: Create 3 buttons (left, right, and jump) for your iOS game.

Image
Last Update:  Feb, 2021 Released Button issue has been fixed. Using Keyboard to control your sprite is relatively easy to implement with the function keyboard_check(key) . But if you want to run your game on your mobile device, you need to implement multi touch buttons…You can find many tutorials about GUI layer and buttons on the web, but  i’ve not been able to find anything about iOS development so it  is what i’m going to try to do! Have you ever heard about Downwell and the Gun Boots? Downwell is a very polished game. Control buttons are very responsive and fast. 3 buttons: Left, Right, and a dual action button to jump and shoot. We will try to reproduce the same mechanics except the third.  The last button will be only associated with the jump movement. Downwell by Ojiro Fumoto @moppin The big question is ... What is the best way to fix the position of the control buttons on the screen? If you just place the instance of your button object within the room, when the cam