Basic custom platform movement

Hello,

I have created a simple and basic custom platform movement, it’s roughly done, kind of hardcoded and I didn’t comments much. Feel free to take a look if you need to.
Basic_custom_platform_movement.rar (14 KB)

Salut!

chez moi la compilation échoue o0. Version 2.2.11076

google translate:
home the compilation fails

In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:5: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/Clock.hpp:32: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/Time.hpp:40:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_SYSTEM_API Time ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/Export.hpp:43:29: note: expanded from: #define SFML_SYSTEM_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:5: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/Clock.hpp:41:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_SYSTEM_API Clock ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/Export.hpp:43:29: note: expanded from: #define SFML_SYSTEM_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:7: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Color.hpp:40:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Color ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:8: C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/RuntimeContext.h:13:7: warning: 'dllimport' attribute only applies to variables and functions class GD_API RuntimeContext ^ <command line>:3:27: note: expanded from: #define GD_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:9: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Object.h:9: C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Force.h:15:7: warning: 'dllimport' attribute only applies to variables and functions class GD_API Force ^ <command line>:3:27: note: expanded from: #define GD_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:9: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Object.h:13: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/VariableList.h:11: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Variable.h:9: C:\Program Files (x86)\Compil Games\Game Develop/include/Core\GDCore/PlatformDefinition/Variable.h:20:7: warning: 'dllimport' attribute only applies to variables and functions class GD_CORE_API Variable ^ <command line>:2:32: note: expanded from: #define GD_CORE_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:9: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Object.h:13: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/VariableList.h:11: C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Variable.h:24:7: warning: 'dllimport' attribute only applies to variables and functions class GD_API Variable ^ <command line>:3:27: note: expanded from: #define GD_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:9: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Object.h:13: C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/VariableList.h:25:7: warning: 'dllimport' attribute only applies to variables and functions class GD_API ListVariable ^ <command line>:3:27: note: expanded from: #define GD_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:9: C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/Object.h:50:7: warning: 'dllimport' attribute only applies to variables and functions class GD_API Object ^ <command line>:3:27: note: expanded from: #define GD_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:13: C:\Program Files (x86)\Compil Games\Game Develop/include/GDL\GDL/SpriteObject.h:38:7: warning: 'dllimport' attribute only applies to variables and functions class GD_API SpriteObject : public Object ^ <command line>:3:27: note: expanded from: #define GD_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:32: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Drawable.hpp:32: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/RenderStates.hpp:33: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Transform.hpp:42:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Transform ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:32: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Drawable.hpp:32: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/RenderStates.hpp:45:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API RenderStates ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:32: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Drawable.hpp:44:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Drawable ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:33: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Transformable.hpp:41:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Transformable ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:34: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Font.hpp:32: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Glyph.hpp:41:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Glyph ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:34: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Font.hpp:33: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Texture.hpp:32: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Image.hpp:46:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Image ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:34: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Font.hpp:33: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Texture.hpp:33: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Window/GlResource.hpp:40:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_WINDOW_API GlResource ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Window/Export.hpp:43:29: note: expanded from: #define SFML_WINDOW_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:34: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Font.hpp:33: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Texture.hpp:47:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Texture : GlResource ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:34: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Font.hpp:36: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/String.hpp:43:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_SYSTEM_API String ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/System/Export.hpp:43:29: note: expanded from: #define SFML_SYSTEM_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:34: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Font.hpp:50:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Font ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:36: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/VertexArray.hpp:32: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Vertex.hpp:42:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Vertex ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: In file included from C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:36: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/VertexArray.hpp:45:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API VertexArray : public Drawable ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: In file included from C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:30: C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Text.hpp:48:7: warning: 'dllimport' attribute only applies to variables and functions class SFML_GRAPHICS_API Text : public Drawable, public Transformable ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Graphics/Export.hpp:43:31: note: expanded from: #define SFML_GRAPHICS_API SFML_API_IMPORT ^ C:\Program Files (x86)\Compil Games\Game Develop/include/SFML/include\SFML/Config.hpp:106:44: note: expanded from: #define SFML_API_IMPORT __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ In file included from C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:14: C:\Program Files (x86)\Compil Games\Game Develop/Extensions/include\TextObject/TextObject.h:48:7: warning: 'dllimport' attribute only applies to variables and functions class GD_EXTENSION_API TextObject : public Object ^ <command line>:4:37: note: expanded from: #define GD_EXTENSION_API __declspec(dllimport) ^ <built-in>:123:38: note: expanded from: #define __declspec(a) __attribute__((a)) ^ C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:94:71: warning: missing terminating '"' character static_cast<TextObject*>(GDtextObjects[i])->SetString(std::string("Basic custom platform movement - ^ C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:94:71: error: expected expression C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:96:17: warning: missing terminating '"' character Z button to jump")); ^ C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:1081:2: error: expected '}' } ^ C:\Users\remy\AppData\Local\Temp/GDTemporaries/0x76717f8events.cpp:21:1: note: to match this '{' { ^

This error is cause by the text object, you can remove it or edit its text at the first line of event. I can’t find the “gather the project and its resources in a folder” option in latest build, so I can’t upload the edited one.

Oui, ca vient surement de la

google translate:
yes, it is probably the

French guys: Please do not use Google Translate, the translation is awful here.
Please ask me using private message in French if you need help.

The example works nice after deleting the line break in an action which modify the text. If you agree, I’ll try to integrate it to the examples or to the templates after having cleaned a bit the events. :slight_smile:

Sure, no problem, do whatever you want with it. :slight_smile: