Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Array of objects  (Read 1316 times)

0 Members and 1 Guest are viewing this topic.

nelsoncookie

  • Newbie
  • *
  • Posts: 3
    • View Profile
Array of objects
« on: March 01, 2017, 03:19:17 pm »
Hi, i'm working on a game and want that when i create an object it gets added to an array (so it's easier to draw and maybe
change coords and stuff).
I only don't know how to do it.
If it helps here is my function:
(click to show/hide)
Thanks in advance!


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Array of objects
« Reply #1 on: March 01, 2017, 03:22:04 pm »
This is the SFML forum, for basic C++ questions there are many better places where to ask.
Laurent Gomila - SFML developer

nelsoncookie

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Array of objects
« Reply #2 on: March 01, 2017, 03:53:42 pm »
This is the SFML forum, for basic C++ questions there are many better places where to ask.
oh, sorry  :-\

Hapax

  • Hero Member
  • *****
  • Posts: 3351
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Array of objects
« Reply #3 on: March 01, 2017, 08:33:42 pm »
There are some important things you should note that are explained in the Sprites and Textures tutorial. You should also notice importance of this part;)
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*